I think there's a minor typo in the trimming examples:
" Trim Me ".trim() // "Trim"
should be " Trim Me ".trim() // "Trim Me" " Trim Me ".trim() // "Trim"
should be " Trim Me ".trim() // "Trim Me"