Fixed empty delimiter bug with stristr function