fixed truncation of string