Added the test for copyString and getToken
for the identifier part.
Added the function body for copyString
and updateed the function getToken.