string solution updated