added StringDocument - string based document (rather than file)