[DF-3868] Fixed cutting of last string