This should happen after the `if ( c >= 'A' && c <= 'Z' ) {...}` part otherwise this wont handle uppercase color codes e.g. §C which are valid