title: How do I do String comparison in Ruby?
body: <p>I am using the following code to compare strings but it always takes me to the <code>else</code>. Why? </p>
  
  <pre><code>print("Enter your state abbreviation: ")
  state_abbreviation = gets
  if state_abbreviation.upcase == "NC"
    puts("North Carolina")
  elsif state_abbreviation.upcase == "SC"
    puts("Sourth Carolina")
  elsif state_abbreviation.upcase == "GA"
    puts("Georgia")
  elsif state_abbreviation.upcase == "FL"
    puts("Florida")
  elsif state_abbreviation.upcase == "AL"
    puts("Alabama")
  else
    puts("You have enter wrong abbreviation")
  end
  </code></pre>
  
  <p>I also have tried <code>.eql?("string")</code> but I get the same result.</p>