remove punctuation and limit tag length