fixing some incorrect example code
removing references to old string helper functions