There are 2 safe methods for extracting string characters and these are the charAt(position) and the charCodeAt(position) methods. The charAt() method returns the character at a specified index (position) in a string:
var str = "HELLO WORLD";
str.charAt(0);
This will return H.
The charCodeAt() method returns the unicode of the character at a specified index in a string:
var str = "HELLO WORLD";
str.charCodeAt(1); This will return 69 (E is the HTML character code for E).