Determine if a string has all the same characters: Difference between revisions