reversed string ruby method