hi,
I also faced the problem of appended whitespaces, I did a fix in controls.js of scriptaculous by writting
this.element.value = (value.replace(/^\W+/,‘’)).replace(/\W+$/,‘’);
you will find this around line 250…260
hope this helps
regards gaurav