Just fyi it's not strictly necessary to run this check. In Python,

`tag[:INDEX]`

will slice the string from index 0 up to but not including INDEX, even if the string is shorter:

```
>>> tag = 'hello'
>>> tag[:200]
'hello'
```