respect custom decimal sep when trimming value in formatNumber