Just to drive this home a little more, the requirement I had was in parsing SID's to use with the SID2USER utility ... as we know, SID's look like this:

S-1-5-21-3189408152-3842477530-4120753002-500

but sid2user doesn't like that format, it wants the sid in this format:

sid2user \\server 5 21 3189408152 3842477530 4120753002 500

so wanted to do a bit of split/joining as follows:

?"sid=" join(split("S-1-5-21-3189408152-3842477530-4120753002-500","-")," ", -6)

Minus six being that last 6 elements of the sid, but can't do unfortunately. Ended up just checking for UBound() and doing a long bit of appending of array elements and spaces ...

-Shawn