(text)
return ''.join([character for character in text
                    if character.isalnum()]).lower()
Lowercase a string and remove punctuation and whitespace
Lowercase a string and remove punctuation and whitespace
Lowercase a string and remove punctuation and whitespace
def _cleanse(text):
    """Lowercase a string and remove punctuation and whitespace
    """
    return ''.join([character for character in text
                    if character.isalnum()]).lower()
def _cleanse ( text ) : return '' . join ( [ character for character in text if character . isalnum ( ) ] ) . lower ( )