Wrapped splitidx in quotes to avoid "unary operator unexpected" error