def full_process(s, force_ascii=False):
 if (s is None):
  return u''
 if force_ascii:
  s = asciidammit(s)
 string_out = StringProcessor.replace_non_letters_non_numbers_with_whitespace(s)
 string_out = StringProcessor.to_lower_case(string_out)
 string_out = StringProcessor.strip(string_out)
 return string_out

def full_process ( s , force_ascii = False ) : if ( s is None ) : return u'' if force_ascii : s = asciidammit ( s ) string_out = StringProcessor . replace_non_letters_non_numbers_with_whitespace ( s ) string_out = StringProcessor . to_lower_case ( string_out ) string_out = StringProcessor . strip ( string_out ) return string_out
process string by -- removing all but letters and numbers -- trim whitespace -- force to lower case if force_ascii == true .