function ucwords(text) {
    return text.replace(/^([a-z])|\s+([a-z])/g, function ($1) {
      return $1.toUpperCase();
    });
  }
Converts variable-esque naming conventions to something presentational, capitalized words separated by space.
@param {String} value The value to be parsed and prettified.
@param {String} [inflector] The inflector to use. Default: humanize.
@return {String}
@example {{ 'Here Is my_phoneNumber' | inflector:'humanize' }} => Here Is My Phone Number
         {{ 'Here Is my_phoneNumber' | inflector:'underscore' }} => here_is_my_phone_number
         {{ 'Here Is my_phoneNumber' | inflector:'variable' }} => hereIsMyPhoneNumber