repl: isSyntaxError() catches "strict mode" errors

Closes #5178.
repl: use more readable RegExp syntax for spaces

This is just a cosmetic change really, nothing major.