Reverse a given string. Different from reverse.py. Not sure why its done as complex as that.