I am building a use case where I have to read a string from an application and use if condition to check whether that string contains Keyword GB at last.
I have used if condition as io_strName.ToString.Contains(“GB”) but I think it will pick those cases as well where GB keyword can be anywhere in the string. But I want to pick those cases only where GB keyword comes as Last.
For example:
The cases are:
NEW ENGLAND GB
Rogers GB
Integrated Solutions GB, etc