import re


def make_into_file_name(str):
    """
    Remove spaces in string and replace with underscore
    :param str: string
    :return: string
    """

    # Replace all runs of whitespace with a single dash
    str = re.sub(r"\s+", '_', str)

    return str