Ignore `node_modules` dir.
Create method to format a string.
Update regex and use the format module.
Separate tests.
Add script test.