Fix comparison string construction