How to rename a tag?

Or other way:
1. Choose tasks by a filter
2. Add new tag to all tasks
3. Remove old tag from all taks

How to do it????