Fix #252 on msmb2.8
Fix
Merge pull request #276 from rmcgibbo/trim

Fix #252 on master