convert array to space delimited string