public String minNumber(String num) {
		String min = new String(num);
		for (int i = num.length() - 1; i >= 0; i--) {
			for (int j = num.length() - 1; j >= 0; j--) {

				char[] charArray = num.toCharArray();
				char tmp = charArray[i];
				charArray[i] = charArray[j];
				charArray[j] = tmp;
				if (charArray[0]== '0') {
					continue;
				}
				String string = new String(charArray);
				if (min.compareTo(string) > 0) {
					min = string;
				}
			}
		}
		return min;

	}