in general I think quick exit if hw_name is empty looks better
```
return "" if hw_name.empty?

return "NAME='#{String.Quote(hw_name)}'\n"
```