avoid useless string duplication when formatting