Join an array into a string.