public StringSearchAlgorithm getStringSearchAlgorithm(String s) {
	
		StringSearchAlgorithm alg = null;
	
		if (s.equals(ss_alg_naive)) {
		    alg = new NaiveSearch();
		} else if (s.equals(ss_alg_rabin)) {
			alg = new RabinKarp();
		} else if (s.equals(ss_alg_boyer)) {
			alg = new BoyerMoore();
		} else if (s.equals(ss_alg_kmp)) {
			alg = new KnuthMorrisPratt();
		} else if (s.equals(ss_alg_kmp_dfa)) {
			alg = new KnuthMorrisPratt_DFA();
		}

		return alg;
	}