Add function nameStr to allow get the element name in plugin