public PhoneNumber(String phoneNum) {
		phoneNum = phoneNum.replaceAll("-|\\s|\\.|\\(|\\)", "");

		boolean isValid = true;
		if (phoneNum.length() != 10)
			isValid = false;
		for (int i = 0; isValid && i < 10; i++)
			if (!Character.isDigit(phoneNum.charAt(i)))
				isValid = false;

		if (isValid) {
			areaCode = phoneNum.substring(0, 3);
			trunk = phoneNum.substring(3, 6);
			rest = phoneNum.substring(6, 10);
		} else {
			areaCode = "000";
			trunk = "000";
			rest = "000";
			System.err.println("Phone number \"" + phoneNum
					+ "\" is not formatted correctly, initializing as " + toString()
					+ ".");
		}
	}