There may be instants when users need to add special characters or symbols to their documents. So it is necessary…