Made + replace a global replace

the replace call was only replacing the first instance of "+" in the search query. Changed to regex with a global flag.