clean document's framing text