Fix issue in routing where subsequent requests are not matched.

Replace regex exec method with string match.
The problem is that exec modifies the state of the regexp object,
and attempts to match after the first fail.
Fix mocha test that was failing on windows

Windows uses \r\n for newlines, so the timestamp included a \n after
replacement.
Also, an extra space got in there, so the test trims the string
before comparison.