TextFragment only removing partially text

Hi team,

We are trying to replace text with blank in pdf but TextFragment only replacing partial text.

We are trying to replace these text [CostcenterHOD], [DirecttaxApprover],[IndirecttaxApprover], but it only replacing [CostcenterHOD] and [DirecttaxApprover] with blank and [IndirecttaxApprover] text was replacing with Indirec text instead of blank.
Screenshot attached of not replacing text TextFragmentIssue.png (108.3 KB)

Attached sample code TextFragmentCode.7z (46.2 KB)

@cyginfo

We were able to replicate the issue in our environment while testing the scenario with 22.8 version of the API. Therefore, it has been logged in our issue tracking system as PDFNET-52379. We will further look into its details and keep you posted with the status of its rectification. Please be patient and spare us some time.

We are sorry for the inconvenience.