private bool CheckString(string str) { int length = str.Length; for(int i = 0; i < length; i++) { if(GetBufferCharacter(_scriptPosition + i) != str[i]) { return false; } } return true; }