finish reverse a string