no need to check equality of the last character

Since the sum of the characters is already known to be equal at that point, it is enough to check just needle_len-1 characters for equality.