Faster string reverse algorithm.