orEmpty

fun String?.orEmpty(defaultValue: String = String.empty()): String

Returns this value, or defaultValue when it is null.