title: comparing two strings in ruby
body: <p>I've just started to learn ruby and this is probably very easy to solve. How do I compare two strings in Ruby?</p>
  
  <p>I've tried the following :</p>
  
  <pre><code>puts var1 == var2 //false, should be true (I think)
  puts var1.eql?(var2) //false, should be true (I think)
  </code></pre>
  
  <p>When I try to echo them to console so I can compare values visually, I do this :</p>
  
  <pre><code>puts var1 //prints "test content" without quotes
  puts var2 //prints ["test content"] with quotes and braces
  </code></pre>
  
  <p>Ultimately are these different types of strings of how do I compare these two?</p>