static bool isEndOfWord(String? nextChar) { return nextChar == null || _symbols.hasMatch(nextChar); }