return position of a word in a string