Changed program logic to view unique character from string