title: "If equal to a letter"
body: <p>I am trying to write a method that takes in a string that will have no spaces. All I want it to do is to return "bug" when the character in the string is a letter <code>[A-Za-z]</code> and to return "ant" if it's any other character.</p>
  
  <pre><code>def Letter(str)
      (0..str.length).to_a do |index|
          if str[index].chr =~ /[A-Za-z]/ ##I think this is where things are going wrong.
              puts "bug"
          else
              puts "ant"
          end
      end
  end 
  </code></pre>
  
  <p>Does anyone have any idea how to fix this? I keep getting arrays of consecutive numbers.</p>