salt: fix checking of string literals in Salt code