Original sentence: Bonham Carter was in a relationship with actor Kenneth Branagh (with whom she appeared in Mary Shelley's Frankenstein, Hamlet and The Theory of Flight), from 1994 to the summer of 1999
Edited sentence: Bonham Carter was in a relationship with actor Kenneth Branagh (with whom she appeared in Mary Shelley's Frankenstein and The Theory of Flight), from 1994 to the summer of 1999