Fix String#[] taking a range

This commit fixed a bug in String#[], so that ranges are now valid and
accepted.