private void PutToken() { // Check to see if the token is an operator. if (!inQuotes && ConditionOperator.TryParse(token.ToString(), ref lastOp)) { ResetToken(); return; } // Not an operator, so it's a term. string term = token.ToString(); if (inQuotes) { term = Regex.Replace(term.Trim(), @"[ ]{2,}", " "); } if ((term.Length == 0) && !inQuotes) { return; } currentExpression.AddTerm(lastOp, term); Reset(); }