(text:str, valid_chars:list[str])
| 119 | |
| 120 | @staticmethod |
| 121 | def remove_invalidchars(text:str, valid_chars:list[str])->str: |
| 122 | filter_text = ''.join(c for c in text if c in valid_chars) |
| 123 | return filter_text |
| 124 | |
| 125 | @staticmethod |
| 126 | def decode(text:str)->str: |