This question has already been answered:
- Replace words without replace 2 replies
You need to write a command that will find the symbol "-" (with a space) from the inserted text and erase it until the next letter. Example: На улице солнце -> На улице солнце