string cutter func - ellipsis after the last space