You can change the duration of the text simply by dragging the text layer until the end of the timeline (or wherever you would want).