Added append functions for dynamic string and buffer