exported solveString