Fix group offset check
Check for NULL string