Propagate StringStream's match() fixes to runmode

Currently, `runMode()` behavior is not consistent across CodeMirror and the runmode addon