Fixed type comparison calls

-- "==" was being used in place of ".equals()"