public String doValidate(Object value) {
        if (value == null || !value.toString().trim().equals(str)) {
            return "Expected '" + str + "' but actual is '" + value + "'";
        }
        return null;
    }