The function rearranges the letters in the input string in some way.
