How do you change a string attribute?

If I create a string attribute for an object and I want to have that string change when the player enters a command, how do I do that? I might want this attribute to be a status attribute well.

Just figured it out. Thanks anyway.