implemented isIdentifier and isNumber