Used to reverse a string