added string reduction problem