Avoid undefined of trim() error, when value is empty
Merge pull request #3 from hemdada/master

Avoid undefined of trim() error, when value is empty