Use make_formatted_string to avoid double length calculation.