check escaping when extracting strings