Treate empty strings as null.