Fix DomHelper bug by also stripping trailing whitespace and replacing all instances of one or more whitespace characters with a single space.
Merge branch 'master' into bs-fix-appendClassName
Merge pull request #91 from typekit/bs-fix-appendClassName

Fix appendClassName to strip all trailing whitespace