We present a framework for reducing all possible cohomogeneity-one strings, i.e., strings with geometrical symmetry, in a given spacetime to mechanical systems, and for analyzing integrability of the systems. As applications, it is clarified whether the systems of cohomogeneity-one strings in AdS5, AdS5×S5, and AdS5×Tp,q are integrable or not. This method may reveal a different type of hidden symmetry of spacetimes.