Moved string trimming to util module

Issue #66