Using version 2018.2 18.2.0.51 Build 20170927_1515(x64)

If a parameter is set to a string with leading space, i.e. ' PARAM VALUE', the following code:

Code:
p.AsString()
returns 'PARAM VALUE'

if I try to set it with leading spaces:

Code:
p.Set('  PARAM VALUE WITH 2 LEADING SPACES')
Code:
p.AsString()
returns 'PARAM VALUE WITH 2 LEADING SPACES' without the leading spaces.


Using the GUI I can set the value of the parameter with leading spaces, BUT the value returned through the API is always without leading spaces...
Is this expected behaviour?

Regards,