Mysteriously the len(@out) returns the correct length in both cases whether spaces are padded or not.
No mystery there. The Len function ignores trailing spaces.