versions: more pythonic way to check for substr