String rule bugfix, define classes in settings