Add description for API
Separate createAttrStr to static function