howto replace the " char?

and look at gsub

Peace, Phillip

You can use the single quote instead for your case.

newstring = string.gsub(/"/, '')

or,

  newstring = string.tr('"', '')

Both have ! (bang) versions that operate directly on the receiver rather than returning the transformed result.

(but what does this have to do with Rails?)