This looks like a portable use of `awk` so I'm not really concerned, but fyi `string replace -rf [pattern] [replacement]` *should* be able to also handle this (quicker since no process needs to be spawned).