It could be. But that would slow down every instance where the two strings are actually the same length. Who knows =]
To add to DrakeX's explanation, the If statement actually only checks if the value it's left with after all those calculations is not 0.
To add to DrakeX's explanation, the If statement actually only checks if the value it's left with after all those calculations is not 0.