clean up array to string functions