Reverse the string input