How about a checksum of the first 3 characters and a select case with the checksum?