generalized the test for valid strings to all methods in AuthGPG