Hi gvmecija,
Can you provide some more details on the use case and version of Gateway you are using?
The variables should retain the trailing space and warn you to it's existence.
If I Base64 encode the variable I can also see the space accounted for:
(No trailing space) "test" b64 dGVzdA== (One Trailing space) "test " b64 dGVzdCA=
Regards,
Joe