public int minimize(String A, String B) {
		char[] AcharArray = A.toCharArray();
		char[] BcharArray = B.toCharArray();
		int min=Integer.MAX_VALUE;
		for (int i = 0; i <= BcharArray.length-AcharArray.length; i++) {
			int count=A.length();
			for (int j = 0; j < AcharArray.length; j++) {
				if (AcharArray[j]==BcharArray[i+j]){
					count--;
				}
			}
			min=Math.min(min, count);
		}
		return min;
	}