Parse empty string and null as null