small modifications (stripos)