Reverse a string.