fixed my string reverse method