def parse_multiple_values(val: str):
    """ Split a multiline string based on newlines and commas and strip leading/trailing spaces.
    Useful for multiple paths, names and such.

    Parameters
    ----------
    val
        Multiline string that has individual values separated by newlines and/or commas

    Returns
    -------
    list
        Return list of strings parsed from the input value
    """
    lines = val.split("\n")
    full_list = []
    for line in lines:
        names = [name.strip() for name in line.split(",") if name.strip()]
        full_list.extend(names)
    return full_list