remove unnecessary characters