add functions for allocating and adding a string buffer field