Adding method to reverse string in place