Two of the most useful methods on strings involve lists of strings. The split method breaks a string into a list of words. By default, any number of whitespace characters is considered a word boundary.
The inverse of the split method is join. You choose a desired separator string, (often called the glue) and join the list with the glue between each of the elements.
The list that you glue together (wd_lst in this example) is not modified. Also, you can use empty glue (see line 8 above) or multi-character strings (see line 7 above) as glue.