Regex fix

need the 'g' modifier otherwise it only replaces one quote