Replace a string in a character field with a amount value
I have a text field in which I want to replace a string with an amount value. while am trying to replace it , it gives me some empty space.
amount = '1200 '
message = 'The STIP amount is &1'
in my code :
replace &1 with message into message.
the result is
'The STIP amount is 1200 '
I dont want the space after 1200.
I tried for condense no-gaps also but it is not working ..
What may be the problem?
Can you suggest some solution for this?