Filter and deduplicate repeated lines of text while preserving the original sequence.
Treat 'Apple' and 'apple' as different items.
Trim whitespace around lines before comparison.
Exclude blank or whitespace-only lines.