Create string buffer with the same length as value.