detect name length