import re


def clean_sheet_dir_name(name):
    """
    Clean up / sanitize sample sheet directory name.

    :param name: String
    :return: String
    """
    return re.sub(r'[\s]+', '_', re.sub(r'[^\w\s-]', '', name).strip())