Exercises with strings in C