Right click on the variable and click on the Rename Symbol option, this option will only rename the correct ABC (str vs bool).
ABC
str
bool
You can alternatively press F2 as well to do this.
F2