def val_list(cfg_val):
    """
    Returns list of values splitted from space- or comma-separated string
    with all white-spaces stripped
    """
    val_set = set()
    res = []
    for val in (cfg_val or '').strip().replace(',', '\n').replace(' ', '\n'
        ).split('\n'):
        val = val.strip()
        if val and val not in val_set:
            res.append(val)
            val_set.add(val)
    return res
