global replace spaces, make regex case insensitive
allow for patterns containing punctuation, metacharacters
Merge branch 'searchjs-tweaks'