public bool Matches(string pattern)
{
if (pattern.Length + _index > _text.Length)
return false;
//Aaron: added this to make it easier to set a breakpoint to debug config issues
string selected = _text.Substring(_index, pattern.Length);
if (selected == pattern)
return true;
return false;
}