Added functions to validate operators and identifiers