Call this function to specify the name of the object.
If the object name is set correctly it returns true otherwise it returns false.