def split(s, delimiter=','):
    """Split a string on given delimiter or newlines and return the results stripped of
    whitespace"""
    return [
        item.strip() for item in s.replace(delimiter, '\n').splitlines() if item.strip()
    ]