formatIdNormalize
private fn
string formatIdNormalize(string s) pure @safeNormalize a formatId for use as a registry key (lowercase).
Performance: Returns the input string unchanged if already lowercase, avoiding allocation for the common case.