public static boolean isDiffChar(String a, String b) {
		int diff = 0;
        for (int i = 0; i < a.length(); i++) {  
            if (a.charAt(i) != b.charAt(i)) {  
                diff++;
                if (diff >= 2) return false;  
            }  
        }
        return diff == 1;  
	}