First Hamming solution. Passes all tests. Refactoring.
Refactored test of string lenght. Eliminated two excess variables.