Added check for null substring in insensitiveContainsString