The correct option is B Length of the string
The time period of a simple pendulum depends on the length of the pendulum and the gravity of the planet. So, in order to change the time period of a simple pendulum, its length needs to be changed. The mass and density of the bob or the quality of the string/thread does not play the role of defining the time period of a simple pendulum.