def lowerstrip(s, all=False):
 return strip_punc(s.lower().strip(), all=all)

def lowerstrip ( s , all = False ) : return strip_punc ( s . lower ( ) . strip ( ) , all = all )
makes text all lowercase and strips punctuation and whitespace .