Study of strange non-strange hadron ratios in pp and p-Pb collisions at LHC energies