Added string reversal and uppercase conversion