Added the test for copyStringWithoutSpace.
Updated initTokenizer to trim the space and tab.