I see that this issue had to be addressed in 21.5
PDFNET-49428 Replacing text using Regular Expressions causes wrapping and formatting issues
However, in 21.7 I have similar problem even literal value is used (check th…...Replacing text using regular expressions causes wrapping and formatting...Replacing text using regular expressions causes wrapping and formatting...