<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def insert_text(self, s, from_undo=False):
 """Natural numbers only."""

        return super().insert_text(
            ''.join(c for c in s if c in '0123456789'),
            from_undo
        )