avoided unnecessary closures during string escaping