Checking for a simpler string

since checking for all of the keys doesn't always produce the correct
result if some are already present