Try to contact wm tech support they will provide some fix to ConvertToString service for the parameter (spacePad) which will have “donttrim” value in that check list.Finally it should result you having leading and trailing spaces as per the template positional.
since convertToString internally do some sort of Trimming before converting file to string.
Generally this fix was provided on our request for wmEDI 4.6 module ,not sure about 6.01.i believe you are using that…
HTH.
#webMethods#edi#Integration-Server-and-ESB