Move TrimSparseEnds to Gataga