private void appendDecimalSeparator(String str) {
        switch (StringUtils.countMatches(str, ".")) {
            case 0:
                return;
            case 1:
                if (!ds) {
                    ds = true;
                    return;
                }
        }
        throw new IllegalArgumentException("Cannot append more than one decimal separator");
    }