Refactor string replacement method
Refactor string replacement with block
Refactor substringWithRange to subscript range
Change infix `/` regex operator parameters
Build test with yaml module to use internals
Refactor `expect` in parser for error propagation