modify reverse-words-in-a-string