def clean_str(
    s: str,
    l: list,
    r: list,
    ) -> str:
    """Replace substrings within a given string

    Parameters
    ----------
    s : str
        The string
    l : list
        The list of substrings
    r : list
        The list of replacement substrings

    Returns
    -------
    str
        The string with the substrings removed
    """    

    #   Loop through every substring in the list
    for i in range(0, len(l)):

        #   Remove all occurrences of the substring
        s = s.replace(l[i], r[i])

    return s