एक स्ट्रिंग को देखते हुए, सभी बाएं-डबल-कोट्स को दो बैक-स्टिक में और सभी राइट-डबल-कोट्स को दो सिंगल-कोट्स में बदलें।
लेफ्ट-कोट्स का मतलब है कि एक उद्धरण शुरू करने वाले उद्धरण। राईट-कोट्स का अर्थ है एक उद्धरण को समाप्त करने वाले उद्धरण। उद्धरण को नेस्टेड नहीं किया जा सकता है। आप मान सकते हैं कि स्ट्रिंग में एक समान संख्या में डबल-कोट्स हैं।
उदाहरण
इनपुट:
"To be or not to be," quoth the Bard, "that
is the question".
The programming contestant replied: "I must disagree.
To `C' or not to `C', that is The Question!"
आउटपुट:
``To be or not to be,'' quoth the Bard, ``that
is the question''.
The programming contestant replied: ``I must disagree.
To `C' or not to `C', that is The Question!''