implemented string questions in C