string exercises in C