Remove duplicate lines from text lists, trim leading/trailing whitespace, eliminate empty lines, and sort unique items alphabetically.