fixed stristr undefined