Notice that only either the suit or face value has to match, and only one of your five cards needs to match. Just look for any single character match between the first line and second line.