Remove trailing character