def _replace_multiple(main_string, replace_string, replace_with_string):
    """Replace a string with a list of substrings."""
    for elem in replace_string:
        if elem in main_string:
            main_string = main_string.replace(elem, replace_with_string)
    return main_string
