/** * Format. * * @param str * String * @return String */ public static String format(final String str) { final NumericShaper shaper = NumericShaper.getContextualShaper(NumericShaper.ARABIC); final char[] c = str.toCharArray(); shaper.shape(c, 0, c.length, NumericShaper.ARABIC); return new String(c); }