import itertools


def permutations(string):
    """
    Create all permutations of an input string and remove duplicates, if present. This means, you have to shuffle all
    letters from the input in all possible orders.
    :param string: a string value.
    :return: all permutations of the string.
    """
    return list("".join(x) for x in set(itertools.permutations(string)))