from typing import List


def modify_list(
    list_: List[str], add: List[str], remove: List[str]
) -> List[str]:
    """Add and remove items from a list. Preserve order and prevent
    duplication.
    """
    return ([a for a in list_ if a not in remove]
            + [a for a in add if a not in list_])