@Override
	void truncate(int length) {
		int maxLen = length - 4;
		if (str != null && str.length() > maxLen) {
			setString(str.substring(0, maxLen));
		}
	}
Construct a String field with an initial value of s.
@param str initial string value or null
@param immutable true if field value is immutable
Ghidra/Framework/DB/src/main/java/db/StringField.java