What purpose does `q` serve? 

Here's a better implementation of this method:

```ruby
def scrub!(hash)
  hash.keys.each do |k,v|
    if k.include?('.') || k.include?('$') do
      old = k.clone
      k.gsub!('.',',')
      k.gsub!('$','#')
      hash[k] = hash.delete(old)
    end
  end
  hash
end
```

That said, I question whether this method is neccessary at all. This is only used for calls to `db.serverStatus()`, the contents of which shouldn't contain the characters you're trying to scrub here. Maybe I'm missing something?