Handle strpos return values in expressions correctly.