title: How to remove quote mark from array
body: <p>I have a script that will import data from a csv file in to a Google sheet. I would like to include the following to remove the quote marks from the data - .replace(/"/g, "") - but am not sure of the best place/syntax to add in to the existing script.</p>
  
  <p>Do I add it in to the section where I convert the csv data to an array -</p>
  
  <pre><code>    function CSVToArray_(strData){
        var rows = strData.split("\n");
        //Logger.log(rows.length);
        var array = [];
         for(n=0;n&lt;rows.length;++n){
          if(rows[n].split(',').length&gt;1){ 
          array.push(rows[n].split(','));
          }
          }
      Logger.log(array);
      return array;
  
  }
  </code></pre>
  
  <p>...or to the section where the sheet gets updated with the array data ?</p>
  
  <pre><code> var impSheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("CtrlSht").getRange("B8:B8").getValue();
    var csvData = CSVToArray_(csvFile);// convert to 2D array
        var ss = SpreadsheetApp.getActiveSpreadsheet();
        var sheet = ss.getSheetByName(impSheet);
        sheet.clear();
        sheet.getRange(1,1, csvData.length, csvData[0].length).setValues(csvData);// write to sheet in one single step 
  </code></pre>
  
  <p>Any guidance/suggestions would be greatly appreciated.</p>