code: function toTitleCase() {
  	  var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  	  return input.toString().replace(/\w\S*/g, function (text) {
  	    return text.charAt(0).toUpperCase() + text.substr(1).toLowerCase();
  	  });
  	}
docs: Convert to title case