update string solution