completes reverse string without .reverse() method