Move classString declaration into sanitiseFilterFunction