private boolean endOfTerms(String ch, int i) {
		boolean end = true;
		char tabChar[] = ch.toCharArray();
		for (int j = i + 1; j < ch.length(); j++) {
			if (tabChar[j] == '1' || tabChar[j] == '0') {
				end = false;
				break;
			}
		}
		return end;
	}