Added a method to reverse a String using recursion