nullIfBlank

inline fun <C : CharSequence> C.nullIfBlank(): C?

Returns null if this String isBlank or the String itself

See also