What about this:
````
 category = (ENV["category"] ? ENV["category"].gsub(/-/, ' ') : "")
````