ensureNotEmpty

fun String.ensureNotEmpty(): String?

Returns null if the string is empty.