use strlen not sizeof on chunked string compare