I'm going to guess this is broken

NS2's code seems to not use it, so I guess it's the reason why I'm
getting errors with no line numbers and no local values above them.
This magically fixes the error

Despite the fact I'm really not doing anything different other than the
length check.
Also, fixed a long standing bug with the caret going outside the text
entry area.
Merge pull request #380 from Person8880/develop

Resolved weird string errors with the chatbox/text entry controls