how to strip things of a string in javascript code example Example: javascript strip " dog".trim() //"dog"