def tags_str_as_set(tags_str):
    """Return comma separated tags list string as a set, stripping out
    surrounding white space if necessary.
    """
    return set(filter(lambda t: t != '', (t.strip() for t in tags_str.split(','))))