replase strstr with strchr in GetIPFromQuery