exercise 8.1 reverse string