public void processDoneString() {
		String doneString[] = input.split(" ");
		String date = IsValidDate.validateDate(doneString[0]);
		if (!date.equals("") && !date.equals("overdue")
				&& !date.equals("archives")) { // Check Date
			setDate(date);
			if (doneString.length == 1) { // Check Empty File
				String index = "-1";
				check = (new IsValidIndex(date, index)).testEmptyFile();
				if (check) {
					setIndex(index);
				} else {
					WarningPopUp.infoBox("Cannot delete from empty file",
							ERROR_HEADING);
				}
			} else {
				String index = (new IsValidIndex(date, doneString[1]))
						.validateIndex();
				if (!index.equals("")) { // Check Index
					setIndex(index);
					check = true;
				} else {
					// WarningPopUp.infoBox("Invalid Index", "WARNING");
					check = false;
				}
			}
		} else {
			// Additional pop-up not done by IsValidDate
			if (date.equals("overdue") || date.equals("archives")) {
				WarningPopUp.infoBox("Invalid Date!", ERROR_HEADING);
			}
			check = false;
		}
	}