Wakefield's Daily Tips

Sentence case

To capitalise the first letter in a string variable, use the following code – which now translates correctly in an Auto code component.

Word = word[0].upper()+word[1:].lower()

The key here is that if you have a string variable rather a list, then it acts as if it is a list of characters.