I'm changing the battle texts (e.g, "Wild XXX appeared!"→"A wild XXX appeared!") to fit the text style of Generation IV onwards, as the screen shot shows below:
However,
a minor error occurs when
a passive Ability is activated (the text is arranged to appear more akin to Generation V):

As is seen in the screen shot above, the "the foe's" text SHOULD NOT have its first letter captalized when it has, since it is not at the beginning of the sentence.
The following picture of HGSS shows what I actually expect:

The "the wild" text is not capitalized when it is in the middle of a sentence.
Any way to fix this text glitch?