run length encoding
reverse words in a string