check all command strings for a match, not just first one, fixes #190 finally