some error checking if string contains other string using the method IN