also do you know if this code will get fired on forms that already have spaces in the values? that would be bad, since they're not illegal and some systems/exports may be relying on spaces existing.

i think it'd be ok if this only triggers if you try to change it though.