stringByReplacingMatchesInString test (issue 571)