package models import "strings" // NormalizeLotName returns the canonical form of a lot name: trimmed and uppercased. // Apply at every point where a lot name enters the system (sync, API input, config load). func NormalizeLotName(s string) string { return strings.ToUpper(strings.TrimSpace(s)) }