filter enumclass for better match, allowing for special characters at the end of the line e.g. ;