rewrite strip_filename()