removing extra characters from the generated titles