This component is used in this way
If you need to use replace on text from a file in the assets use File component instead, read the file, and then modify the text.
Try it like this