Re-checking of a fields maximum length

I found this great addon, and wanted to use it, but it just so happened, that the input fields maximum length could vary depending on the content that was input. This is a minor patch to make it happen.

It does lower the performance somewhat, but I don't think that by much.