def split_strip(string, delimiter=u','):
 if (not string):
  return []
 words = [w.strip() for w in string.split(delimiter)]
 return [w for w in words if w]

def split_strip ( string , delimiter = u',' ) : if ( not string ) : return [ ] words = [ w . strip ( ) for w in string . split ( delimiter ) ] return [ w for w in words if w ]
splits string on delimiter .