find the index of a string in a collection