Added method to reverse string