problem is clearly with popping a string.  lptr->pop() does not seem to return a string even when lptr points to a list of strings