I updated worksheet name but the same is not updating in the title
This is a kind of confusion!
When we update the worksheet name first it will update the title of the worksheet. But usually what happens when we update the worksheet title then we remove the attribute and keep our own custom name.
And so next time when we update worksheet names then there is no variable in worksheet title and so that doesn't get updated.