in reply to In-place editing of files

Couldn't you use regex to find the stuff in quotes line by line, and then use $1 =~ s/ //; to get rid of all the spaces within the stuff in quotes?

...Keep in mind, this is mostly the suggestion of a relative n00b. AND untested.