$word = qq("$word") if $word !~ /"/; #### foo,hello""world,bar