Nano-optimization: Do not call strlen twice This optimizes string += int and string += float minimally. It is probably not even detectable.