private void lifeCycle() {
			String s = "";
			StringBuilder sb = new StringBuilder();

			while (isInputActive) {
				try {
					s = readInput();
					if (s.length()==0) {
						this.isInputActive = false;
						break;
					}
					if (this.isValidInput(s)) {
						sb.append(s);
					}
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			action(sb.toString());
		}