Define stringSlice before it's used