Can you explain what you mean by "type A etc" String?
What makes a String valid or invalid?
How does the program get the Strings to test?