So after the error code you have a “:”. And also right before the code, we have the word error code…
So what we can do is, we can split the string based on this pattern and access only that element in the array we got after splitting. It will be more efficient than the contains I suppose…