[feat] add general purpose function for adding zeros for formatting, fix #4