remove all spaces in a char string