Modified StringObject

modified token2 test code and stringTrim() inside StringObject