public static String stripNonDoubleChars(final String value) {
        final StringBuilder newString = new StringBuilder();

        for (int i = 0; i < value.length(); i++) {
            final char c = value.charAt(i);
            if (c >= '0' && c <= '9' || c == '-' || c == '.') {
                newString.append(c);
            }
        }
        final int sLen = newString.length();
        final String s = newString.toString();
        if (sLen == 0 || sLen == 1 && (".".equals(s) || "-".equals(s))) {
            return "0";
        }

        return newString.toString();
    }