Updated index so it doesn't throw an error when supplied null cmdStr
1.0.12