Use dojo.trim().  replace() is insufficient since it doesn't remove spaces or tabs.
Use dojo.trim().  replace() is insufficient since it doesn't remove spaces or tabs.

The other option is to do trimming on lookup rather than on instantiation.
We should do that if current strategy affects page load time significantly.

Refs #6469. !strict

git-svn-id: 674a2d6b1e32e53f607eb824547723f32280967e@14323 560b804f-0ae3-0310-86f3-f6aa0a117693

redaktor/deliteful