bug fix for the way strings were being generated