Checking return length of string comparison