def _replace_wspace(text):
 for char in (' DCTB ', '\n', '\r'):
  if (char in text):
   text = text.replace(char, ' ')
 return text

def _replace_wspace ( text ) : for char in ( ' DCTB ' , '\n' , '\r' ) : if ( char in text ) : text = text . replace ( char , ' ' ) return text
replace tab .