You searched for: “capitonyms
capitonym (s) (noun), capitonyms (pl)
A word that changes its meaning and pronunciation when capitalized; such as, polish and Polish, august and August, concord and Concord and as shown in the two poems below:
Job's Job
In August, an august patriarch
Was reading an ad in Reading, Mass.
Long-suffering Job secured a job
To polish piles of Polish brass.

Herb's Herbs
An herb store owner, name of Herb,
Moved to a rainier Mount Rainier.
It would have been so nice in Nice,
And even tangier in Tangier.

—"Naming the nyms", by Richard Lederer
(; December 13, 2001)