public static String limitToTen(String pastPrices) {
		// TODO Auto-generated method stub
		if (pastPrices.contains("Split"))
			System.out.println("**S-->" + pastPrices);
		if (pastPrices.equals("HISTORIC"))
			return "#_#_#_#_#_#_#_#_#@#_#_#_#_#_#_#_#_#@#_#_#_#_#_#_#_#_#@#_#_#_#_#_#_#_#_#@#_#_#_#_#_#_#_#_#@#_#_#_#_#_#_#_#_#@#_#_#_#_#_#_#_#_#@#_#_#_#_#_#_#_#_#@#_#_#_#_#_#_#_#_#@#_#_#_#_#_#_#_#_#"
					+ " #" + " #";
		split = 1;
		dividends = 0;
		String[] days = pastPrices.split("@");
		StringBuilder reconstruct = new StringBuilder();
		int counter = 0;
		for (int i = 0; i < days.length; i++) {
			String[] data = days[i].split("_");
			if (data.length < 9) {
				System.out.println(pastPrices);
				String[] determine = days[i].split(":");
				try {
					if (determine.length < 2)
						dividends += doDouble(days[i].split("_")[3]);
					else if (counter < 5) {
						split = doDouble(determine[0].split("_")[3])
								/ doDouble(determine[1].toLowerCase()
										.replace("stock_split", "")
										.replaceAll("_", ""));
						System.out.println("SPLIT: " + split + "\nFrom: "
								+ pastPrices);
					}
				} catch (Exception e) {
					System.out.println(days[i]);
					e.printStackTrace();
				}
			} else {
				reconstruct.append(days[i] + "@");
				counter++;
				if (counter == 10)
					break;
			}
		}
		for (int j = counter - 1; j < 9; j++)
			reconstruct.append("#_#_#_#_#_#_#_#_#@");
		return reconstruct.append(" " + dividends + " " + split)
				.deleteCharAt(reconstruct.lastIndexOf("@")).toString();
	}