Stats: Replace len hardcoded contents by charsmax and sizeof