headline strlength function