Changed Checkinteger to CheckInteger with Substring