working string-reverser (still needs fixing)