use string methods to reverse words in a sentence