cRLF fixing
shortening algorithm improved