В kotlin
private fun changelowertoupper(): String { val str = "CyBeRdRaGoN" return str.toLowerCase(Locale.ROOT) // or Locale.getDefault() }