Remove superfluous strings