Use Formatter.format() to split the digit with comma