string: clear up defines for matching modes