Adding trimming functionality to typing tools