const mySentence = "freeCodeCamp is an awesome resource"; const finalSentence = mySentence.replace(/(^w{1})|(s+w{1})/g, letter => letter.toUpperCase()) console.log(finalSentence)