`index()` does not return `-1` in case the string was not found, at least in python 3.6. https://github.com/axiacore/py-expression-eval/blob/fd18b6fb1b11b2c74200aef3969b088f8d5fc4e4/py_expression_eval/__init__.py#L828