public static String string(final String str) {
        return str != null
                ? str
                : "";
    }
Returns the passed string if it is non-null else returns an empty string.
stroom-util-shared/src/main/java/stroom/util/shared/NullSafe.java