strip unnecesary characters