Switched to using a StringBuilder instead of concat in the assembleTokens method.
Also switched to using a for-each loop instead of an iterator/while loop in that same method.