import re


def clean_for_filename(string):
    """ Cleans up string for use in filename """
    string = re.sub(r"\[.*?]", "", string)  # noqa: W605
    string = re.sub('\s+', ' ', string)  # noqa: W605
    string = string.replace(' : ', ' - ')
    string = string.replace(':', '-')
    string = string.replace('&', 'and')
    string = string.replace("\\", " - ")
    string = string.strip()
    return string