global replace spaces, make regex case insensitive
allow for patterns containing punctuation, metacharacters