public String getPathWord() {
			StringBuilder string = new StringBuilder(100);
			char[] array = new char[100];
			TrieNode curNode = this;
			int count = 0;
			/*Loop up the trie up until loop
			 * while storing each charater in an array*/
			while (true) {
				array[count] = curNode.character;
				if (curNode.isRoot) {
					break;
				}
				curNode = curNode.parent;
				count++;
			}

			//builds the string
			for (int i = count - 1; i >= 0; i--) {
				string.append(array[i]);
			}
			return string.toString();

		}