add simple string trim method

Enyo-DCO-1.1-Signed-off-by: Cole Davis <cole.davis@lge.com>
ensure that we trim the text to compare

Enyo-DCO-1.1-Signed-off-by: Cole Davis <cole.davis@lge.com>