support string in PrintStringAsBinaryString function