Set name to undefined when its not a string