public static int strbtoi(String binary)
	{
		final int ASCII_CUTOFF = 48;
		final int BASE = 2;
		int sum = 0;
		for(int i = 0 ; i < binary.length() ; i++){
			sum *= BASE;
			sum += ((int) binary.charAt(i)) - ASCII_CUTOFF;//get the ascii value, then subtract the cutoff.
		}
		return sum;
	}