Reduce spaces before and after insertion to chemistry idiom

Hello Geoff, 
I added a couple regexs to only insert space where necessary.  This may make more sense with the mhchem syntax.
Daniel