title: Error when printing string.length
body: <p>Why can't I print  the length of a constant string?
  This is my code:</p>
  
  <pre><code>#!/usr/bin/ruby
  Name = "Edgar Wallace"
  name = "123456"
  
  puts "Hello, my name is " + Name
  puts "My name has " + Name.to_s.length + " characters."
  </code></pre>
  
  <p>I've already read "<a href="https://stackoverflow.com/questions/14005524/how-do-i-determine-the-length-of-a-fixnum-in-ruby">How do I determine the length of a Fixnum in Ruby?</a>", but unfortunately it didn't help me.</p>
  
  <p>After trying, this error is thrown:</p>
  
  <pre><code>./hello.rb:7:in `+': can't convert Fixnum into String (TypeError)
            from ./hello.rb:7:in `&lt;main&gt;'
  </code></pre>