Finished minimum width implementation to replace printf