compare s1 and s2