def split_trim(s: str, delim: Optional[str]) -> List[str]:
    return [s.strip() for s in s.split(delim)]
def split_trim(s: str, delim: Optional[str]) -> List[str]:
    return [s.strip() for s in s.split(delim)]