private String getLabelStringForStringData(Data data, Symbol symbol) {
		if (!symbol.isDynamic()) {
			return options.simplifyTemplate(symbol.getName());
		}
		DataType dataType = data.getBaseDataType();

		//
		// We now have to ask the data type to create an abbreviated form of the text
		//
		String prefix =
			dataType.getDefaultLabelPrefix(data, data, data.getLength(), options.displayOptions);
		if (prefix == null) {
			// data type does not specify default prefix
			return symbol.getName();
		}
		return prefix + UNDERSCORE + SymbolUtilities.getAddressString(symbol.getAddress());
	}
Generate a string for the given symbol, accounting for offcut situations.
Ghidra/Features/Base/src/main/java/ghidra/program/model/listing/CodeUnitFormat.java