Remove document's start/end indicators on writing