A Go string is a sequence of bytes. UTF-8 text often needs more than one byte per character, so len answers a different question from a range loop or a rune count. A rune is a Unicode code point; it is still not a whole displayed grapheme in every writing system. Choose the unit the request names. The strings package handles common operations such as trimming, splitting and case conversion. Its functions return new strings. They do not edit the original. In these tasks you will clean labels, count code points and split records with empty fields. Watch the difference between Fields, which collapses whitespace, and Split, which preserves empty entries around delimiters. Both behaviors are useful when the contract is explicit.
Trim the edges before uppercasing.