private LinkedList<String> cleanInput(String input,
			LinkedList<String> result) {
		  
		LinkedList<String> output = new LinkedList<String>();
		output.add(input);
		
		//splits the sentence into parts which only contain words which were not found by phoenix
		for(int i = 0; i < result.size(); i++) {
			LinkedList<String> nextRound = new LinkedList<String>();
			for(int j = 0; j < output.size(); j++) {
				String[] help = output.get(j).split(result.get(i));
					
				for(int k = 0; k < help.length; k++) {
					if(help[k] != "") {
						nextRound.add(help[k].trim());
					}
				}
				
			}
			output = nextRound;
		}
		
		//splits the parts into single words
		LinkedList<String> singleWords = new LinkedList<String>();
		for(int i= 0; i < output.size(); i++) {
			String[] help = output.get(i).split(" ");
			for(int j = 0; j < help.length; j++) {
				String possibleWord = help[j].trim();
				if(possibleWord.length() > 0)  {
					singleWords.add(possibleWord);
				}
			}
		}
		
		LinkedList<String> wordOfSentence = new LinkedList<String>();
		input = " " + input + " ";

		//checks if words are actual words of a sentence and not just a part of a word
		for(int i = 0; i < singleWords.size(); i++) {
			String regex = ".* " + singleWords.get(i) + " .*" ;
			if(input.matches(regex)) {
				wordOfSentence.add(singleWords.get(i));
			}
		}
		
		return wordOfSentence;
	}