Checks for repeating characters