Fixed trim function to actually work
Merge pull request #13 from JimTheCactus/trim_fix

Fixed trim function to actually work