Support complex nesting & escaping