Improved the digit grouping of numbers by keeping in mind the current locale.