Additional refinement to use better string methods and eliminate unnecessary parenthases in bob.js