title: Counting chars in ruby 1.9.3 error
body: <p>I'm counting string length as shown below:</p>
  
  <pre><code>if(key['name'].to_s.chars.length==0)
    key['name']="Others"
  end
  </code></pre>
  
  <p>And on ruby 2.1.8p440 it works, but on ruby 1.9.3p551 it throws following error:</p>
  
  <pre><code>(undefined method `length' for #&lt;Enumerator: "Latency":chars&gt;):
  </code></pre>
  
  <p>I cannot update 1.9.3 I must change this code.</p>