Created new GetStringSlice method.