Escaped the RegExp string.

fixes #48
Bumped version to v0.5.1.
Refined excess cleanup.