Hmm. The line that does the replacement is wrapped like so:
M.
if(opt.fieldNames[i] !== "ID") {
thisField = (typeof thisField !== "undefined") ? thisField.replace(/(^[\s\xA0]+|[\s\xA0]+$)/g, '') : null;
}
So the replace shouldn't even happen for the ID. That's exactly why I have that test there.M.