Fixed bug incorrectly comparing strings using ==