fix ending rest string logical bug
fix ending rest string logical bug

vein1992/lightncandy,Corollarium/lightncandy,cgvarela/lightncandy,vein1992/lightncandy,zordius/lightncandy,Southparkfan/lightncandy,jmgq/lightncandy,zordius/lightncandy,cgvarela/lightncandy,jmgq/lightncandy,fadimko/lightncandy,Southparkfan/lightncandy,Corollarium/lightncandy,fadimko/lightncandy