Escape strings when finding match the second time