TDM and Portal not acting the same for string editing

Document ID : KB000095703
Last Modified Date : 14/05/2018
Show Technical Document Details
Issue:
Goal - have a user enter a list of values either , delimited or space delimited and return a list of values that is comma delimited with no extra commas. Please create a variable and paste these into it TDM vs PORTAL and compare results create a variable called variable2 and have the value set to 1,2,3 create a variable called variable3 and have the value set to 1 2 3 4 (varying spaces between numbers) @replace(@righttrim(@replace(@replace(3, ,<>)@,><,)@,<>)@,<>,",")@
TDM -> 3 - this is what I want PORTAL - >
SPACE - this should return a 3 add a space after the 3

@replace(@righttrim(@replace(@replace(3 , ,<>)@,><,)@,<>)@,<>,",")@
TDM - > 3 this is what I want
Portal -> 3 this is what I want

@replace(@righttrim(@replace(@replace(33, ,<>)@,><,)@,<>)@,<>,",")@
TDM -> 33 This is what I want
PORTAL -> 33 This is what I want use varialbe2

@replace(@righttrim(@replace(@replace(~variable2~, ,<>)@,><,)@,<>)@,<>,",")@
TDM -> Error wrong number of paramaters
Portal -> 1,2,3 this is what I want user variable 3

@replace(@righttrim(@replace(@replace(~variable3~, ,<>)@,><,)@,<>)@,<>,",")@
TDM 1,2,3 this is what I want Portal 1,2,3 this is what I want to break down the error on portal

@replace(@righttrim(@replace(@replace(33, ,<>)@,><,)@,<>)@,<>,",")@ -> space @righttrim(@replace(@replace(33, ,<>)@,><,)@,<>)@ -> space
@replace(@replace(3, ,<>)@,><,)@ -> 3 @righttrim(3,<>)@ -> space what is right trim doing on the portal to drop a single character?
Environment:
TDM 4.5
Cause:
requires a code change.
Resolution:
This has been fixed in TDMWeb-4.5.10.0.zip.  Please contact CA Support for this version or to confirm that this fix is in a later GA after May 14, 2018.
Additional Information:
Video URL on how to open a Support Case - https://communities.ca.com/videos/5898-demo-how-to-open-a-support-case
You can download the latest version of TDM by following the directions in this document: https://support.ca.com/us/knowledge-base-articles.TEC1903942.html.   
To contact support, go to https://www.ca.com/us/services-support/ca-support/contact-support.html