Corrected and tested StringReverse