trim() added into isEmpty function.
Merge pull request #6 from faizulhaque/master

trim() added into isEmpty function.