handle long strings- could do better - was missing end