public static String executeCommand(String inputCommand) {

		String command = inputCommand.trim().split(" ")[0];
		COMMAND_TYPE commandType = determineCommand(command.toLowerCase());

		switch (commandType) {
		case ADD_EVENT:
			return addEvent(inputCommand);
		case DELETE_EVENT:
			return deleteEvent(inputCommand);
		case DISPLAY_EVENTS:
			return displayEvents();
		case CLEAR_EVENTS:
			return clearEventList();
		case SORT_EVENTS:
			return sortEvents();
		case SEARCH_EVENT:
			return searchEvent(inputCommand);
		case EXIT:
			writeIntoFile();
			System.exit(0);
		default:
			return MESSAGE_INVALID_CMD;
		}
	}