Removes all the undesired characters, such as spaces and tabulations from a string.
{
string.erase( std::remove( string.begin(), string.end(), '\n'), string.end());
string.erase( std::remove( string.begin(), string.end(), '\t'), string.end());
string.erase( std::remove( string.begin(), string.end(), '\r'), string.end());
return true;
}