To convert a string to lowercase in Kotlin, call lowercase() function on this string . lowercase() method returns a new string with all the characters in this string converted to lowercase.
Read moreWhat is toLowerCase?
The toLowerCase() method converts a string to lower case letters . Note: The toUpperCase() method converts a string to upper case letters.
Read moreHow do you capitalize the first letter in Kotlin?
capitalize() returns a copy of this string having its first letter upper-cased. String. capitalize() returns the original string, if it’s empty or already starts with an upper-case letter. To capitalize first character of each word in the given sentence, refer the second example provided below.
Read more