Reverses a given string and returns it.