Added a comparison for calling out to a helper function to reverse a string