new methods to identify character sets in strings