Make sure that characters in string don't repeat.