Reverse a string function created.