kotlin-stdlib / kotlin.text / orEmpty orEmpty Common JVM JS Native 1.0 fun String?.orEmpty(): String Returns the string if it is not null, or the empty string otherwise.