minor tweaks to quotes munging functions