capitalizeWords

fun String.capitalizeWords(locale: Locale? = null): String

Capitalize words in this string according to the given locale. Uses the Java default locale if none is provided.