removes unwanted characters