update doc and check strlen