Fixed memory leak in strings