capitalize
Converts the first string character to uppercase and the rest to lowercase.
Parameters
string
(string)
Character string
Returns
string
:
Character string
Example
capitalize('a text');
//=> A text