function capitalize(string) {
    string = String(string);
    return string.charAt(0).toUpperCase() + string.slice(1);
  }
Capitalizes a string value.

@private
@param {string} string The string to capitalize.
@returns {string} The capitalized string.