added a method to reverse words in a string