Validate length of title.