join items together into a single string delimited by an optional separator