You could split the string using the Delimited Split Function refernced in my signature and the "FOR XML PATH" approach together with a DISTINCT to build te final string.
If the length of each element is known and constant, the split function can be simplified.