Normalize an input string to conform to internal naming standards.