save a string starts from a character code example
Example: javascript string starts with
//checks if a string starts with a word
function startsWith(str, word) {
return str.lastIndexOf(word, 0) === 0;
}
startsWith("Welcome to earth.","Welcome"); //true