Resolved weird string errors with the chatbox/text entry controls

NS2 never ceases to amaze me at what can error.