Reverse the order of the words in a given string