function capitalize(string) {
  return string.charAt(0).toUpperCase() + string.slice(1).toLowerCase();
}
Capitalizes a string
@memberOf fabric.util.string
@method capitalize
@param {String} string String to capitalize
@return {String} Capitalized version of a string