add `Document.removeNewLine` with test