Error thrown
[]
operator not supported for strings