Replace substring with slice (saves 4 bytes).