I am currently filtering out all non-alphanumeric characters from this list.
cleanlist = []
    for s in dirtylist:
        s = re.sub("[^A-Za-z0-9]", "", str(s)) 
        cleanlist.append(s)
What would be the most efficient way to also filter out whitespaces from this list?
 
     
     
     
    