def split_strip(s, delim=','):
    """Converts a delimited string into a list, stripping whitespace 
    from both ends of each item.  Does not return any zero-length strings.
    'delim' is the delimiter.
    """
    return [it.strip() for it in s.split(',') if it.strip()]