Adjustable Rectangle to Text

With this simple script, we are going to make a rectangle fit a text.