BUF_STR to x->ptr and BUF_STR_LEN to CONST_STR_LEN