Symbol#slice is equivalent to sym.to_s.slice, per ruby-doc.

Also, String#slice is an alias of String#[].