add xMaxLength demo