int main()
{
string title="This is a test string";
string::iterator pos;
pos=remove(title.begin(),title.end(),' ');
title.erase(pos,title.end());
cout<<title<<endl;
}