ui: use equals comparison for alignment attribute

Using string equals comparison instead of by reference.

Note: StringHelper is deprecated - using stringsEqual
just for keeping the current convention and ease
later cleanup of the class.

Change-Id: I5769aa78f4bc740c7fad7ca22af996c9a221ba76
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>