fix isValidIdentifier