For this week's assignment, I made a small adjustment by incorporating regular expressions into the code I wrote last week.
The change is minimal and straightforward—I replaced the method used to find characters.
Instead of using output.charAt(i), I created a variable that matches any letter or whitespace using the regular expression /\w|\s/g.