working comparison of two strings