If you still want to go with RusselB's code and to have the control codes stripped, just enclose
Code:
$1-
like this:
Code:
$strip($1-)