Can we use the variable `$tagdata` instead of `$the_string` here and elsewhere?