def METHOD_NAME(name):
    name = normalize_string(name, strip_punctuation=True).lower()
    for symbol in amo.MOZILLA_TRADEMARK_SYMBOLS:
        violates_trademark = name.count(symbol) > 1 or (
            name.count(symbol) >= 1 and not name.endswith(f' for {symbol}')
        )
        if violates_trademark:
            raise forms.ValidationError(
                gettext(
                    'Add-on names cannot contain the Mozilla or '
                    'Firefox trademarks.'
                )
            )