Update string formatting to use more idiomatic Go constructs