public boolean check(StringBuilder aValue, String MAX_VALUE) throws UnsignedException {

        if (aValue.charAt(0) == MIN_VALUE) {
            throw new UnsignedException();                      //is there a -
        } else if (aValue.length() < MAX_VALUE.length()) {      //less letters?

            return false;

        } else if (aValue.toString().equals(MAX_VALUE)) {
            return false;
        } else if (aValue.length() == MAX_VALUE.length()) {     //same length?
            for (int i = 0; i < MAX_VALUE.length(); i++) {
//loop to check if the value at letter i at aValue is higher than Max_VALUE
                if (aValue.charAt(i) > MAX_VALUE.charAt(i)) {

                    return true;
                }
            }

            //value is less than MAX
        } else {

            return true;
        }

        return true;

    }