Setting iTerm tab names

Being lazy and forgetful, I decided to write a simple bash script to execute this command. What I wanted to be able to do is enter a command with a title, which would then become the tab title. Something like this:

itermtabname leftontheweb

This is of course a very simple thing to do, but I have never done any shell scripting. So with a bit of Google Fu I found out how to do this. It is indeed very simple:

I've also added this script to my toolbox.