How do you change the case / capitalization of a personalization token?

Thanks for the quick reply, Teun!

I tried both versions and still get names not in ALL CAPS.

REGISTER FOR FREE, {{ personalization_token('contact.firstname', 'FRIEND')|capitalize }}

and

REGISTER FOR FREE, {{contact.firstname|capitalize}}