I have a file with characters like thi: `ABCD...HHCCCCHH..BC`

Now, I want to remove characters between two `H` if gap between two `H` is less than 20 characters. And write the output in a new file. So, the new file will look like this:

`ABCD...HH..BC`

Can this be done in a fast way ?