Selector dynamic issue

Go to the target selection in the properties panel of the activity and which ever selector you are using open the expression editor and use the below
Use quotes this way
“<webctrl id='”+variable+“’ tag=‘SPAN’ aaname=‘Close Window’”

thank you