replaced stristr with stripos