Deduplicates multiple lines of text by comparing each line and removing duplicate rows, keeping the order of first occurrence to quickly clean up repeated data