Added trim feature
Fixed code formatting issues
Replaced 4 space indents with 2 space indents
Merge pull request #17 from atgheb/trim

Added trim feature