checking the index of "gpii_primarySchema_" might be useful here, so that you can avoid the magic numbers e.g. 19. Another option would be to set a variable with the "gpii_primarySchema_" and then use it's length.