Different string reverse implementation