The new maxStringLength was not actuated into the actual logic

Missed using the new maxTextLen config value in the code