If you select a Text Layer and choose Layer>Create Outlines from the menu, After Effects will create mask shapes by tracing the contours of the letters on the Text Layer. It will place these masks on a new Solid Layer, which it will add to the Timeline.