private bool ReadAheadLookFor(string toFind) { int k = 0; for (int j = i; j < i + toFind.Length; j++) { if (input[j] != toFind[k++]) { return false; } } i += toFind.Length; return true; }