title: Converting String variable to array
body: <p>I have created method that take certain data from an array, and creates a new dictionary with the array by adding in some pre-defined strings, </p>
  
  <p>Im able to create the new array's I need, but I seem to be storing it as a String variable instead of as an array. Here is my Code:</p>
  
  <pre><code>var createContestantsDropdownlist = ContestantInfoDropdown();
  
  function ContestantInfoDropdown() {
  var ContestantTest = ['Contestant 1', 'Contestant 2', 'Contestant 3', 'Contestant 4'];  
  var option = [];
      for (var i=0;i&lt;ContestantTest.length;i++){
      option += '{value: \'' + ContestantTest[i] + '\'},';
      }
      option += '{value: \'Contestant 5\'}';
      return option
    };
  </code></pre>
  
  <p>When I take a look at the data that has been created, it's all in the correct format, but I need to try and remove the double quotes at the beginning and end to make it an array, and not a string value.
  <a href="http://i.stack.imgur.com/u6F7u.png" rel="nofollow">See here how the string value Looks</a>.</p>
  
  <p>All I would like to know is how to convert this from a string by simply removing the Double quotes at the beginning and the end, or am I completely on the wrong track here. any help appreciated!</p>
  
  <p>Thanks!</p>