Reversed a string in place