Cleaning a list pasted from a web page
Input
480 lines with trailing spaces, non-breaking spaces and inconsistent capitalisation.
Result
Whitespace normalised, invisible characters stripped, then case-insensitive de-duplication reduces the list to 356 unique entries with original capitalisation preserved.