Use length instead of lentext, adjusted a value by 1.