capitalize

Normalize a String : upper case the first character, and lower case the rest of it.
capitalize($data ) : String | List(String)
$data.capitalize( ) : String | List(String)
Parameters
$data String | List(String)

Works with a string, or a list of strings.

Examples

How to capitalize a String (or a List of Strings)