Alternatively...

```ruby
title = "%files#{" #{pkg}" if pkg == gem_name}\n"
```

It's up to you...I agree this one is a little gross :smile: