Fix curly quotes in parentheses
Also fix when typing, refactor