Add comments above each length check to clarify the purpose for each.

Aka the first one would then be something like:

```JavaScript
// Short-hand hex, ex: "fff"
```