Solution:
The maximum possible number of such strings is 20. An example of a set attaining this bound is
This example is taken from page 57 of F. J. MacWilliams and N. J. A. Sloane,
The Theory of Error Correcting Codes (New York: Elsevier Publishing, 1977). The proof that
20 is the best possible is elementary but too long to reproduce here; see pages 537-541 of MacWilliams and Sloane for details.
In general, a set of M strings of length n such that any two have a distance of at least d is called an (n,M,d)-code. These objects are of basic importance in coding theory, which studies how to transmit information through a channel with a known error rate. For example, since the code given above has minimum distance 3, I can transmit to you a message consisting of strings in this code, and even if there is a possible error rate of one digit in each string, you will still be able to determine the intended message uniquely.