Generalization of the model of a relativistic string in a geometrical approach