This script, by itself, already halts your input text and only outputs the edited version of your text. The problem you are going to have when combining this with something like UPP is that UPP most likely also has code for changing text. Try moving this script to the top of your script list and see if that helps.