Hmm, that’s probably the least efficient solution you could possibly make.
Was there a problem with the solution I posted right before your post? If you want lowercase instead of uppercase it’s easy enough to change “:upper()” into “:lower()”. I just used uppercase so you could easily get the “official” class name for class coloring and things like that.