Stylistic tweaks

### Review

Just a few minor simplification tweaks to make the code more "idiomatic Go."

I also set the cache in the `String()` method to prevent recomputing every time.

@matthinrichsen-wf