limit length of extracted agent name