added add_space argument to util.math.format