On 2013-01-30 04:27, Ali Çehreli wrote: > s = s[0..7] ~ s[8..$]; As with the other slicing approaches, it would be best to check first if s.length >= i (with i = 8 in this case).