refactored into two gsubs to so that the regex not matcher will still match the right quotes