You can use int CString::Remove( TCHAR ch )
It takes the character you want to remove as argument and returns the number of characters removed.
strCount.Remove(' ');
Should do what you want. I also agree with the comment saying you should use std::string instead.