fix removeAttr to remove space separated list