Added some debug to string methods to grid and nodegrid