Dramatically improved the removeUnitsFromZeroValues function by properly constructing a regex. Could maybe still be improved with a bit more book learning