`g` flag in regexp not needed since it should only replace it once.