adding in the reversing of the strings