def _delete_substrings(string, substrings):
    """
    TODO: convert to a function called "_delete_suffixes" that only deletes
          substrings _at the end_.
    """
    for ss in substrings:
        string = string.replace(ss, '')
    return string
