Fixed ruby dynamic string escaping bug in non-dynamic strings.
Added test for not match.