Remove Duplicate Lines

Remove duplicate lines from a block of text, optionally case-insensitively.