Update isOneEditDistance