upperCaseFirst

Capitalizes the first letter of a string and converts the rest to lowercase.

Return

The formatted string with the first letter in uppercase.

Parameters

string

The input string.