Made getName() const with static variable