It's not always possible to do this: you can use expressions for names like
"run" & number
to switch between names like "run0", "run1", "run2" etc. Then if you rename all of those animations to "walk0", "walk1", "walk2" etc then the editor can't be expected to work out how to update the expression. So it could update the simple cases, but then sometimes it'll still be broken since it only partially updated it...
One technique is to use global constant variables, which support renaming across the project, and give you one place to update a name in the event sheet.