public void loadFrom(String text) {
   startState.setReader(new LineReader(text));
   startState.parse(stories);
   if (stories.isEmpty()) throw new IllegalArgumentException("No stories in file.");
 }