Variable is not changing when one button is pressed. (String)
That's not Arduino but basic C++ question.
You are creating a new local string variable with the same name than your global variable, and changing the local variable. The global variable will not change.