terminate string with null character