Prevent identical adjacent characters