Remove trailing data