regex-test fix error of failing to locate substing