Issue #1920688 by tunic, facine, ckaotik, bhanu951: Support multiple instances of the same token type in token replacement
Closes #1920688