Clean up array to string conversion functions