Here is a Python program that deletes all duplicate characters in a string based on the provided input format:
Python:
def remove_duplicates(input_string):
result = ""
for char in input_string:
if char not in result:
result += char
return result
# Input
n = int(input())
for _ in range(n):
string = input().strip()
print(remove_duplicates(string))
You can run this program and input the sample input you provided to get the corresponding output. Let me know if you need further assistance or explanation on how the program works.