Recheck your filter code closely. You are modifying $name
but returning $status_name
which is undefined. If you had debugging enabled, you should have seen the debug message telling you that $status_name
is an undefined variable
Simply change
return $status_name;
to
return $name;