How do you display easily changible text in an actionbar?

I want to display something I can treat as a variable that I can set to strings. I originally thought of storage but I don't know how to display it
Continue to help post