This can probably be handled for more cleanly than this, but I can see why you went this route. I don't know the contents of the packet you expect to receive, but, is it possible to span this out to 8 characters, just in case there's a collision?