Remove a between value in property/ parameter

Hello,

I have a property/ parameter which populates values as comma seperated like example abc,bcd,fgh.

I need to write a when condition to check if bcd is present in parameter then bcd should be removed and the paremeter value should be now abc,fgh.

Any inputs on how to achive this? I know one approach to use what comes before into a new parameter and what comes after into another new parameter and add these two new parameters.

looking for any different and easier one step solution

@BHARGAVP2854
Can you try using replaceall function i.e replaceAll(“abc,bcd,fgh”,“,bcd”,“”)

@HariPriyaY Worked thank you