Validate parameter separator

Closes #304
You forgot the anchors. Right now, `"foo,bar"` is a valid separator. The pattern should be `/^ ?, ?$/`. For readability, I suggest `/^[ ]?,[ ]?$/`.