string: make sure \0 is always set at end of string.