Complex sentence: Hepburn was chosen as her replacement only days before filming began: she had been helping Tracy with the script, and so was already familiar with the part.
Split into simpler sentences: Hepburn was chosen as her replacement only days before filming began. She had been helping Tracy with the script, and so was already familiar with the part.