I am trying to limit the amount of inserted text, but the limit does not work and does not cut the text, as required by the limit. Here is my code
let calcTex