Compare the first half of string with the second half