Replacing strsav() with string_append()