check value when creating header string