Working on the trim function. Very dense.