converter object array to a string