Fixed the order of text replacements

The order matters.