Catch loError As Exception lcError = loError.Message Select Case lcError Case "Bad Data" lcError = "You didn't encrypt the XML string with a valid key." End Select Return lcError End TryHowever, as the Case is doing an exact match, it doesn't find a match when Bad Data is returned as the correct string is Bad Data + 3 characters. I don't want to have to deal with the 3 extra characters nor having the removal procedures I had before. How can I make this Case to be not sensitive about the string? Basically, if it starts with Bad Data, this is all I need.