added test case for string regex match