Simple expression validator fixed