import re


def normalize_attribute_name(attr):
    """
    Removes invalid characters for attribute names from the provided string
    :param attr: str, string used as the name of an attribute
    :return: str
    """

    return re.sub(r'\W', '', attr)