added string escaping