Don't use deprecated x[i:] syntax. (Fixes #6)