const extractText = () => { const regex = /[A-Z/a-z/ /]/g; const letters = text.match(regex); const newText = letters.join(""); return newText; };