Reverse string in place.