numberFormat returns invalid strings on IE8

IE 8 can't handle a nevative parameter on the substr function.