private static boolean equalsAsString(final String value, final String text, final Boolean ignoreCase) {
        if (value == null || text == null) {
            return false;
        } else {
            String val = value.trim();
            String txt = text.trim();

            if (NullSafe.isTrue(ignoreCase)) {
                return val.equalsIgnoreCase(txt);
            } else {
                return val.equals(txt);
            }
        }
    }
@return value as a string, trimmed and, if ignoreCase is true, converted to lower case
stroom-pipeline/src/main/java/stroom/pipeline/filter/SAXEventRecorder.java