capitalize

Returns a copy (if needed) of this string having its first letter titlecased using the rules of the default locale, or the original string if it's empty or already starts with a title case letter.

This function does not support one-to-many character mapping. If needed, see capitalizeFull.

Implemented because the Kotlin-Std-Lib capitalize is duplicated