rephrased an expression when checking for string vars