Clean (?#...) comments within STRING for quoting, i.e. convert\Q to Q and \E to E. If EXTENDED-MODE is true, also cleanend-of-line comments, i.e. those starting with ## and ending with#\Newline.