Change strings labels from code

Hi all. How do I change the value of a string in resources? Code example.

I want to change the name of the menu when I click a menu item.