My application communicates with a device over RS232. Each sent message gets a string returned which is a response code. Some response codes are unique, some are used multip