title: Why does Array.to_s return brackets?
body: <p>For an array, when I type:</p>
  
  <pre><code>puts array[0]
  
  ==&gt; text 
  </code></pre>
  
  <p>Yet when I type</p>
  
  <pre><code>puts array[0].to_s
  
  ==&gt; ["text"]
  </code></pre>
  
  <p>Why the brackets and quotes? What am I missing?</p>
  
  <p>ADDENDUM: my code looks like this</p>
  
  <pre><code>page = open(url)  {|f| f.read }
  page_array = page.scan(/regex/) #pulls partial urls into an array
  partial_url = page_array[0].to_s
  full_url = base_url + partial_url #adds each partial url to a consistent base_url
  puts full_url
  </code></pre>
  
  <p>what I'm getting looks like:</p>
  
  <pre><code>http://www.stackoverflow/["questions"]
  </code></pre>