Check if the two strings are the same length