Assume your string is : 1234$abcd which you want to set i.e. a $ in the middle.
Define 2 constants:
Name: Part1 , value: '1234$'
Name: Part2, value: 'abcd'
Now in your workflow, you can easily use: Part1 + Part2
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.