It may be possible to remove the ball, but the design of most strings doesn’t allow that. Moreover, it also varies between the violin string brands and models.