Takes in a string and reverses it