code: function titleCase(str) {
    return str
      .toLowerCase()
      .replace(/(-|_)/g, ' ')
      .replace(/\w\S*/g, word => word.charAt(0).toUpperCase() + word.substr(1));
  }
docs: Convert str to title case (every word will be capitalized)
  @param {String} str
  @return {String}