Is there a function that searches for a string in an array of strings and returns the index of the element? like instr but for arrays