public static bool CompareCurrent(this TabAwareCharacterStream stream, string text, bool ignoreCase = false) { return(stream.CompareTo(stream.Position, text.Length, text, ignoreCase)); }