def _StripSeparators(value):
 return re.sub('  [ ]*', ' ', re.sub(_WORD_SEPARATOR_RE, ' ', value))

def _StripSeparators ( value ) : return re . sub ( '  [ ]*' , ' ' , re . sub ( _WORD_SEPARATOR_RE , ' ' , value ) )
remove special characters and collapse spaces .