Fix bug allowing matching 4 and 5 character codes