$string = "$a where " . join ' and ',grep {$_} ($b,$c);