Calling capitalize before you chomp may not always give you what you want. Instead, I'd rewrite this as so:

```ruby
player_name = gets.strip.capitalize
```

`strip` will remove the newline _and_ leading / trailing whitespace.