private fun String.capitalize(locale: Locale): String { return substring(0, 1).uppercase(locale) + substring(1) }
Similar to Kotlin's capitalize with locale parameter, but that method is currently experimental