Top-first
Merge pull request #53 from pikesley/trim-from-top

Top-first