I am trying to loop through a string:

```
statement = "The Game of Throne Rocks!"

```

with the letter as the key for my hash. The value of my key will be the number of times the letter appears in my string.

I found this code through Stack Overflow:

```
statement.each_char do |char|
  next if char == " "
  result[char] = 0 unless statement.include?(char)
  result[char] += 1
end

```

It works, and I am attempting to rewrite it to my understanding. My code below doesn't work:

```
result = {}
statement.each_char do |char|
  if char == ' '
    next
  elsif result.include?(char)
    result[char] += 1
  else
    result[char] = 0
  end
end

```

Please help.