public static boolean isFloatingNumber(String text) {
        final int startPos = findStartPosition(text);
        if (startPos < 0) {
            return false;
        }

        boolean dots = false;
        for (int i = startPos; i < text.length(); i++) {
            char ch = text.charAt(i);
            if (!Character.isDigit(ch)) {
                if (ch == '.') {
                    if (dots) {
                        return false;
                    }
                    dots = true;
                } else {
                    return false;
                }
            }
        }
        return true;
    }
@Test
    @DisplayName("Tests that isFloatingNumber returns true for empty, space or null")
    void isFloatingNumberEmpty() {
        assertFalse(ObjectHelper.isFloatingNumber(""));
        assertFalse(ObjectHelper.isFloatingNumber(" "));
        assertFalse(ObjectHelper.isFloatingNumber(null));
    }