Reverse a string recursively.