How to check between two common strings one vowel missing and one consonant is different

how to check between two common strings one vowel missing and one consonant is different
and rest of the letters are same.

please help

ex :- string1 : ABCDEFGH string2 : ABCDFGK