> Thanks for the info. Will adjust my logic accordingly. Actually, if you just stringprep every Jid (which you should do to be correct anyway), then comparing Jids will be done correctly automatically for you; no need for logic. cheers, Remko