fix removeAttr to remove space separated list
Merge pull request #1043 from altbdoor/master

fix removeAttr to remove space separated list

Fixes #1041