Revert "Revert "added add_space argument to util.math.format""

This reverts commit 5f730db0cda8dea735de74b180e288b39db7daf5.