private static boolean withDecimalsParsing(final String str, final int beginIdx) {
        int decimalPoints = 0;
        for (int i = beginIdx; i < str.length(); i++) {
            final boolean isDecimalPoint = str.charAt(i) == '.';
            if (isDecimalPoint) {
                decimalPoints++;
            }
            if (decimalPoints > 1) {
                return false;
            }
            if (!isDecimalPoint && !Character.isDigit(str.charAt(i))) {
                return false;
            }
        }
        return true;
    }
Normalizes the given value by removing diacritics.

@param value the value to normalize, expected to be a String.
@param shouldNormalize whether to remove diacritics from the string.
@return the normalized string, or an empty string if the input is not a string or is empty.
primefaces/src/main/java/org/primefaces/util/LangUtils.java