added strPos function