Added trim to remove whitespace
Fixed validation message issue
Merge pull request #2 from susiii/patch-1

Added trim to remove whitespace