Restricting characters to input

Do you want to delete the forbidden characters from the input after the user has typed them?