Nscommands: replace len hardcoded content by charsmax