def remove_trailing_stars(self, new_path=None, in_place=True, check=False):
<EOL>if check and int(sh.grep('<STR_LIT:-c>', '<STR_LIT>', self.path, _ok_code=[<NUM_LIT:0>,<NUM_LIT:1>])) == <NUM_LIT:0>: return self<EOL>if in_place is True:<EOL><INDENT>sh.sed('<STR_LIT>', '<STR_LIT>', self.path)<EOL>return self<EOL><DEDENT>if new_path is None: new_fasta = self.__class__(new_temp_path())<EOL>else:                new_fasta = self.__class__(new_path)<EOL>new_fasta.create()<EOL>for seq in self: new_fasta.add_str(str(seq.seq).rstrip('<STR_LIT:*>'), seq.id)<EOL>new_fasta.close()<EOL>return new_fasta<EOL>
Remove the bad character that can be inserted by some programs at the
        end of sequences.