When did the format for World Series start?

The first World Series was played in 1903 and it was a best 5 out of 9 format. It was changed to a best 4 out of 7 for the following World Series and except for 1919-1921, when it was again a best 5 of 9, has remained a best 4 of 7.