fixed bug with garbage in strings