[SPARK-3944][Core] Using Option[String] where value of String can be null