made the generic method callers instantiate only classes with String as a parameter