replace and replaceAll() method is not working

Hi Team,
I am trying to replace some value with empty by using replace and replaceAll() method.
it is not working. Could you please check the reason?

Hi @tapan.kumar.sahoo can you share your script?

Also, do you use Express edition, or Developer?