Deleting unwanted characters This function can be used to remove unwanted characters such as symbols, emojis or control characters from a text.