Added ability to automatically replace closing quotes.