code: private static final String correctNumberFormat(String value)
     {
        String result;
        int index = value.indexOf(',');
        if (index == -1)
        {
           result = value;
        }
        else
        {
           char[] chars = value.toCharArray();
           chars[index] = '.';
           result = new String(chars);
        }
        return result;
     }
docs: Detect numbers using comma as a decimal separator and replace with period.
  
  @param value original numeric value
  @return corrected numeric value