replace characters in {ProblemDetailsText} for custom intergration in problem notification

There is no such option to modify variable content. You can open product idea to add for example option to modify content with regex for example. In such example you can only create kind of middleware that will clear this content for you on the fly. The question is if your system will not accept html for example.