If you have Origin 7.0 or higher you can also try the OriginC option. The following (or something like it) should work
bool delete_token (string &InputString, string TokenString)
{
/*
Deletes the string "TokenString" from the string "InputString"
*/
string LocalCopy="";
int i=0;
while (i<InputString.GetNumTokens())
{
string strToken=InputString.GetToken(i);
if (strToken.Compare(TokenString)!=0)
{
LocalCopy+=strToken;
LocalCopy+=" ";
}
i++;
}
InputString=LocalCopy;
return (true);
}