function capitalize(string) {
      string = string == null ? '' : String(string);
      return string ? (string.charAt(0).toUpperCase() + string.slice(1)) : string;
    }
Capitalizes the first character of `string`.

@static
@memberOf _
@category String
@param {string} [string=''] The string to capitalize.
@returns {string} Returns the capitalized string.
@example

_.capitalize('fred');
// => 'Fred'