[string] Allocate more memory than needed

This avoid calling realloc each time a character is added.
Now all C strings are duplicated rather than just take the pointer.
Also remove string_new_static.