C program to delete a word from a string