get word in string via index