Lewis Hamilton is confident Mercedes will show improvement in France following difficult street races in Monaco and Azerbaijan.