jetbrick-commons/src/main/java/jetbrick/lang/StringUtils.java
public static String defaultIfBlank(final String s, final String defaultStr) {
        return isBlank(s) ? defaultStr : s;
    }
public static String defaultIfBlank(final String s, final String defaultStr) {
        return isBlank(s) ? defaultStr : s;
    }
<p>
Returns either the passed in String, or if the String is
whitespace, empty ("") or {@code null}, the value of {@code defaultStr}.
</p>

<pre>
StringUtils.defaultIfBlank(null, "NULL")  = "NULL"
StringUtils.defaultIfBlank("", "NULL")    = "NULL"
StringUtils.defaultIfBlank(" ", "NULL")   = "NULL"
StringUtils.defaultIfBlank("bat", "NULL") = "bat"
StringUtils.defaultIfBlank("", null)      = null
</pre>