def get_chars_from_guesses(guesses):
    """
    gets characters from guesses (removes underscores), removes duplicates and sorts them in an array which is returned.
    example guess: "__cr_"
    """
    guesses_copy = guesses.copy()
    guesses_copy = "".join(guesses_copy)
    return sorted("".join(set(guesses_copy.replace("_", ""))))