In this study, we have investigated the cloud of string with perfect fluid (CSPF) matter distribution for the homogeneous and anisotropic (Bianchi I, III, and Kantowski-Sachs) universe models in the $f(R,T)$ theory. We have used the\, bouncing\, deceleration parameter, anisotropy parameter, and equation of state to obtain the exact solutions of field equations. The obtained physical and kinematic quantities were analyzed with the help of graphics. If the anisotropy parameter is zero, then our model becomes an isotropic model of the universe and the string tension vanishes in LRS Bianchi I metric. Finally, we discuss the need for further research.