C++ Program to Remove Spaces from String