Removes year from input

    :param name: path to edit
    :return: inputs with no years

def remove_year(name):
    """Removes year from input

    :param name: path to edit
    :return: inputs with no years
    """
    for i in range(len(
            name) - 3):  # last index is length - 3 - 1 = length - 4
        if name[i: i + 4].isdigit():
            name = name[:i] + name[i + 4:]
            return remove_year(
                name)  # if there is a removal, start again
    return name