Remove trailing char.