Micro-optimise strings

* Switch to single quote strings
* Use ‘case field’ rather than if statements