filled in reverseString function