miner: remove punctuation signs from the end of phrase