[#7] Corrected truncate method