THE TOOLROOK GUIDE

Clean copied text without losing its meaning

A pasted paragraph can carry layout artifacts from a PDF or website. Cleaning works best when you identify which spaces are accidental and which ones carry structure.

ToolRook editorial · Updated September 28, 2026

Keep a reference before changing anything

Save an untouched copy or keep the source open. A cleanup tool can apply a rule consistently, but it cannot know whether a line break separates two addresses or merely marks the edge of a PDF column.

Try a short, representative passage first. Include a heading, a normal paragraph and a list if the full document contains all three.

Start with spaces at the edges

Leading and trailing spaces around an ordinary paragraph are often accidental. Removing these is a useful first pass before changing the line structure.

Repeated spaces inside prose are also often unnecessary, but the same spaces can align a plain-text table. Review table-like content separately instead of applying one aggressive cleanup to the entire document.

Distinguish wrapped lines from paragraphs

A PDF may insert a line break after every visual line. Joining those breaks can restore a paragraph, but removing all breaks at once can merge headings, list items and separate speakers.

A safer sequence is to identify real paragraph boundaries, join only the unwanted wraps and then reduce excess blank lines. Confirm that sentences still have appropriate spaces where the lines were joined. ToolRook removes blank lines but does not join wrapped lines; make that change in a text editor when needed.

Check words that touch a line ending

A word split across a printed line can paste as two pieces with a hyphen between them. The hyphen may be a layout artifact, or it may be part of a real compound word.

Do not remove every hyphen automatically. Compare ambiguous words with the source. Also check for OCR substitutions such as the letter O versus zero; spacing cleanup cannot establish which character was intended.

Treat structured text differently

Code, poetry, postal addresses and tabular data use whitespace as part of their structure. In these cases, keep the original indentation and line breaks unless you understand their purpose.

After cleaning ordinary prose, read the beginning and end of each paragraph, check list items and compare the character count if you have a form limit. A shorter result is only useful when it still says what you intended.

  • Scan headings and numbered lists for accidental merging.
  • Check punctuation where lines were joined.
  • Use the destination’s own counter for a strict submission limit.
  • Keep the source until the cleaned text has been checked in its final destination.

Put it into practice with a tool from the toolbox.

Explore tools