add arrayToString method for pack any array to send as a string