Easy optimizations

Some easy optimizations discovered by a local FindBugs run.
True, but those strings are not appended to `textBuilder`, they’re function arguments.