Just curios why this is a problem?
Whay do you care the length returned? You could so a RTRIM or LTRIM to get rid of spaces...
Again I do not know what you are doing so thier may be a reason I do not know of this will not work.
------------------
Chris