Fix array to string conversion