def fix_name(name):
    """
    Fixes album/artist name.
    """
    name = str(name).strip()
    if name.endswith(")"):
        name = name.rsplit("(", 1)[0].rstrip()
    name = name.replace(".", " ")
    return name