remove unneccessary characters