reordered the parameters of format_helper to be consistent with format. Pass the original format_str to format by const reference