public static boolean isString(Data data) {
		if (data == null || !data.isInitializedMemory()) {
			return false;
		}
		DataType dt = data.getBaseDataType();
		if (dt instanceof AbstractStringDataType) {
			return true;
		}
		if (dt instanceof Array arrayDt) {
			ArrayStringable as = ArrayStringable.getArrayStringable(arrayDt.getDataType());
			return (as != null) && as.hasStringValue(data);
		}
		return false;
	}
Returns true if the {@link Data} instance is a 'string'.

@param data {@link Data} instance to test, null ok.
@return boolean true if string data.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/StringDataInstance.java