Capital letter & lower case

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Koroshiya

Hi !
I have not found any information about change from capital letter to lower case and backwards in a STRING variable.
Thanks !

:bust_in_silhouette: Reply From: kidscancode

Have a look at the String class documentation:

and you’ll see to_upper() and to_lower()

:bust_in_silhouette: Reply From: lionel

You can also use capitalize like Camel Case :


or if u want to upper the first char of your string :

string[0].to_upper() + string.substr(1,-1)