Sets object's name using dot notation