Might also try:
```
bits = name[1..2].to_i
```