private String removeStopWordsAndSort(String query,
			HashSet<String> stopwordsSet) {
		String[] splitQuery = query.split(" ");
		Arrays.sort(splitQuery);

		StringBuilder sb = new StringBuilder();
		for (int i=0; i < splitQuery.length; i++) {
			// Performing stemming of individual word
			/*
			 * Stemmer st = new Stemmer(); st.add(str.toCharArray(),
			 * str.length()); st.stem(); str = st.toString();
			 */
			if (stopwordsSet.contains(splitQuery[i]) == true) {
				continue;
			}
			sb.append(splitQuery[i]);
			if(i != splitQuery.length-1)
				sb.append(" ");
		}
		return sb.toString();
	}