Tip: See also the IDL_String::Join method, which provides similar functionality but with an object-oriented interface.
The STRJOIN function collapses a one-dimensional string array into a single merged string or two-dimensional string array into a one-dimensional array of merged strings. The strings in the removed first dimension are concatenated into a single string using the string in Delimiter to separate them.
Replace all the blanks in a sentence with colons:
Result = STRJOIN( String [, Delimiter], /SINGLE )
Returns the merged strings.
A string array to be collapsed into merged strings.
The separator string to use between the joined strings. If Delimiter is not specified, an empty string is used.
If SINGLE is set, the entire String is joined into a single scalar string result.