Convert the elements of an array into a string