method

capitalize

capitalize(str)
public

Returns a copy of str with the first character converted to uppercase and the remainder to lowercase