Changed string comparisions accoring to style of openhab