@Override
		public String getValue(FoundString foundString, Settings settings, Program program,
				ServiceProvider services) throws IllegalArgumentException {

			return (foundString != null && foundString.getLength() > 0)
					? foundString.getDataInstance(
						getProgram().getMemory()).getStringRepresentation()
					: "";
		}
Table model for the Search -&gt; For Strings... result dialog.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/string/StringTableModel.java