Capitalizes the first letter of each sentence in the given string.
Sentences are determined by the delimiters: period (.), exclamation mark (!), and question mark (?).
Each sentence will have its first character capitalized and the rest converted to lowercase.
Leading spaces after sentence delimiters are trimmed.
Parameters
sentences: string
The input string containing one or more sentences.
Returns string
A new string with each sentence capitalized appropriately.
Capitalizes the first letter of each sentence in the given string. Sentences are determined by the delimiters: period (.), exclamation mark (!), and question mark (?). Each sentence will have its first character capitalized and the rest converted to lowercase. Leading spaces after sentence delimiters are trimmed.