Thank you, jdraw.
This is not real-world; it's just for a class (and it's due tonight!). I am not concerned about verifying that the code is actually valid, just that it is in the A1A1A1 format. I am not even worried about the space at this point.
It is the only problem that is holding me...