exercise for C string