public Doc(String text) {
		String line = null;
		BufferedReader br;
		try {
			// Creating Stream with BufferedReader to given Text..
			br = new BufferedReader(new StringReader(text));
			while ((line = br.readLine()) != null) {			
				//line.split("(.*?[.!?](?:[\"')\\]}]|(?:<.*>))*[\\s])");
				String[] res = line.split("(?<=[.!?])\\s+");
				if(res.length > 0 ){
					for (String string : res) {
						string = string.replace("\\n","");
						string = string.replace("\\r","");
						string = string.replaceAll("\\s+"," ");
						
						if (string.trim().equals("") || string.trim().equals(" "))
							continue;

						Frag frag = new Frag(string);
						if (!frags.isEmpty() && frag.getCleaned().length > 0) {
							frags.get(frags.size() - 1).setNext(
									frag.getCleaned()[0]);
						}
						this.frags.add(frag);
					}
				}
			}
		}catch (Exception e) {
			e.printStackTrace();
		}
	}