Case-insensitive token type check