string.join

Syntax

s = string.join(l,sep)

Join the list l into a single string, by converting each list entry into a string (if it wasn’t already) combining them into a single string separated by the sep string.

Returns:s - a single string made up of each entry in l separated by sep.
Arguments:l - The list to join sep - The separator string to use.