If regular expression for splitting is provided as String instead of RegExp, it breaks split method since String doesn't have desired properties. Fixes #138