public int getDistance(String after) {
		if (ignoreSize)
			after = StringSizeConverter.getFullString(after);
		int[][] cost = new int[before.length() + 1][after.length() + 1];
		for (int i = 0; i < cost.length; i++)
			cost[i][0] = i;
		for (int i = 0; i < cost[0].length; i++)
			cost[0][i] = i;

		int eq;
		for (int i = 1; i < cost.length; i++)
			for (int j = 1; j < cost[i].length; j++) {
				eq = getCost(before.charAt(i - 1), after.charAt(j - 1));
				cost[i][j] = minimum(cost[i - 1][j - 1] + eq, cost[i][j - 1] + a_r, cost[i - 1][j] + a_r);
			}
		return cost[cost.length - 1][cost[0].length - 1];
	}