Can't do str.contains because it allows almost anything to match anything else.
Please explain and post the code showing your problem.
If the order is not important, you could use a Set. Add all the Strings to it and at the end only the unique ones will be there, duplicate adds are ignored.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656