Fixed the simicolon issue for string compare

Fixed the simicolon issue for string compare