def scrub_text(text):
 scrubbed_text = text.rstrip().replace('\n', '\\n').replace(' DCTB ', (' ' * 4))
 return scrubbed_text

def scrub_text ( text ) : scrubbed_text = text . rstrip ( ) . replace ( '\n' , '\\n' ) . replace ( ' DCTB ' , ( ' ' * 4 ) ) return scrubbed_text
cleans up text .