MegaTools.live

Trim lines

Remove whitespace from both ends of each line.

How to use Trim lines

Clean imported rows before comparing or deduplicating them. Only the start and end of each row are trimmed. Spaces between words and the order of the rows are preserved.

Worked example

Input
  first  
 second 
Output
first
second