Fixed charstr bug