Reverse words in a string keep delimiters in order