return value?.Length > maxLength ? value.Substring(0, maxLength) : value;