don't need to global replace when splitting strings

This fixes accidental string matching.  Since I changed the regexs to split the document by elements before applying the regexs, then this will only replace the first match (which is what you want).