pub fn normalize_ip(ip_str: &str) -> String
Normalize IP address string (removes port numbers or brackets).