It sounds like "name" is actually ending up as [].  [] == '' is true.  This suggests that we are failing to unpack a list somewhere or something like that.  We should not be relying on coercion of lists to empty strings.