You can use canse insensitive regex evaluation:

```ruby
res.body =~ /user name/i
```