Remove duplicate lines from a block of text while preserving the original order of first occurrences.