একটি স্ট্রিং দেওয়া হয়েছে, সমস্ত বাম-ডাবল-কোটগুলি দুটি ব্যাকটিক্স এবং সমস্ত ডান-ডাবল-কোটগুলিকে দুটি একক-কোটে প্রতিস্থাপন করুন।
বাম-কোটস অর্থ উদ্ধৃতি যা একটি উদ্ধৃতি শুরু হয়। ডান-কোটস অর্থ উদ্ধৃতি যা একটি উদ্ধৃতি শেষ। উদ্ধৃতি বাসা বাঁধতে পারে না। আপনি ধরে নিতে পারেন যে স্ট্রিংটিতে একটি সমান সংখ্যক ডাবল-কোট রয়েছে।
উদাহরণ
ইনপুট:
"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!''