ReverseString function replaced

Reverse the order of the words in the line instead of reversing the
order of the letters in each word.