Reverse the words in a char[]