trim_prefix causing --use-strict flag to fail

as specified in bug https://github.com/visionmedia/express/issues/2051#issue-31472860 the `trim_prefix` function declaration within the `try/catch` causes problems when starting express with `--use_strict` directive.