Fix bug in CSV string output