Convert emtpy string to nil