Make whitespace acceptable in util.str_format