C program to replace spaces with *