in reply to delete space

Precision in stating your problem is helpful.
I need to remove the white spaces from a string and print just the string.
and
All i need is
"c1"
"s1" and so on.

Which is it? Remove just the spaces or remove both spaces and commas? Your regex suggests you do want to remove the commas but your narrative says otherwise.