Pankaj: Fix heap error in toString() method.