@Override
	public void insert(String string, int index) {
		if ((text.length()) == index-1) {
			System.out.println("Index is at end");
			index -= 1;
		}
		
		System.out.println(text.length() + " Index:" + index);
		String preText = text.substring(0, index);
		String postText = "";
		try { postText = text.substring(index); } catch (Exception e) {}
		System.out.println(preText);
		System.out.println(postText);
		
		char[] stringArray = string.toCharArray();
		
		char[] preArray = preText.toCharArray();
		char[] postArray = postText.toCharArray();
		char[] newText = new char[stringArray.length + preArray.length + postArray.length];
		
		for (int i = 0; i < preArray.length; i++) {
			newText[i] = preArray[i];
			System.out.print(newText[i]);
		}
		
		for (int i = 0; i < stringArray.length; i++) {
			newText[index + i] = stringArray[i];
			System.out.print(newText[index + i]);
		}
		
		for (int i = 0; i < postArray.length; i++) {
			newText[stringArray.length + index + i] = postArray[i];
			System.out.print(newText[i]);
		}
		
		System.out.println(this.text);
		this.text = new String(newText);
	}