Why is this the empty string instead of nil?