Fixed bug incorrectly comparing strings using ==

Fixed bug incorrectly comparing strings using ==