checking to see if the two words are of equal lenghts