String Basics
var demo = "Rob is amazing.";
// get position of string/character
var pos = demo.indexOf("amazing"); // 7
// cut out portion of string
var sub = demo.substring(1, 6); // "ob is"
// replace a portion of the string
var rep = demo.replace("amazing", "really good looking");
// slice off the last characters of a string
var sli = demo.slice(0, -2); // Rob is amazin
// slice off the last comma
orderStr.replace(/^,/, '');
// get everything to the right of a position
var sli2 = demo.slice(4); // is amazing.
Other Methods
match(); // used with Reg Exp
search(); // used with Reg Exp
split(); // used with arrays