This must be impossible, it is like trying to see if something in america is the same in china, how can you? A string is an array, this is saying, if the first thing in the array is equal to everything else in the array then return 1 (or something), but you can't see anything but the first character.