title: data is not inserted correctly in csv
body: <p>When i add data into csv programmatically it gives me below issue:</p>
  
  <p>Please check attached screen shot first:</p>
  
  <p>I have some columns in my csv file. Crad#, current balance, amount used and etc..</p>
  
  <p>Please not that, Ship_to_Adddress_1, Ship_to_Adddress_2, Ship_to_Adddress_3 do not have any data. from csv.</p>
  
  <p>The issue is related to Ship_to_Name column. This column contains customer first name and last name.</p>
  
  <p>Here (Demo demo is the customer name)... When I genearte the csv the Demo demo should display under column Ship_to_Name only.</p>
  
  <p>But it is displaying first name in one column and the last name in another column.</p>
  
  <p>It should display under Ship_to_Name column.</p>
  
  <p>According to me space between Demo demo is the main issue.</p>
  
  <p>Following is the code:</p>
  
  <pre><code>$fileName = "Zitomer_used_cards_".$fileDate."_".$trxntime.".csv";
  $file = "/abc/abc/staging.abc.com/abc/code/testworks/csv/".$fileName;
  
      if (!(file_exists($file))) {
       $csv_handler = fopen ($file,'w'); 
       fwrite ($csv_handler,$csv);
       fclose ($csv_handler);
      }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Gm1eK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Gm1eK.png" alt="enter image description here"></a></p>