Update and rename reverse an array to reverse a string