How do I make %t capital?

I wanna make %t into all capital letters.
For example, %t would appear like this; I LOVE YOU %t!!! > I LOVE YOU Virulent Pest!!!

I want that to appear as I LOVE YOU VIRULENT PEST!!!

could someone do that?

How is it being used in your actual code? Is it a Weak Aura or some such?

Yes we need more context. But here is a simple example

/run SendChatMessage(format("I LOVE YOU %s!!!", UnitName("target"):upper()))
1 Like