Updated removetrailing