Used sprintf instead of (string_of_X + concat).