Isn't index already set to IntFromString(key) ?  Why repeat that ?