The purpose of the function is to get the index of a string in an input array (arVal), then based on that index, return a string in an output array (arDisplay).
In th