Thank you very much for your quick responses. I know that these are distinct pairs. But for the case I'm considering, these are just plain strings and can be considered the same (duplicates) for all intents and purposes. Does it help ???
**UPDATE : I have now updated the example to illustrate one of the probs for the soln presented by YourMother. Is there a way to overcome this ??