For example, Apache Jakarta's StringUtils has a function called stripToNull which returns null in place of an empty string.
This illustrates how Apache Jakarta's StringUtils has a method called stripToNull, which replaces empty strings with null values.