remove unnecessary character from text