 		tokens.append(token)
 
 		currentString = ""
+		currentStringLength = 0
 
 	}
 


	func addToken(type: TokenType) {

		let keywordLength = currentString.characters.count

		let start = charIndex - keywordLength
		let end = charIndex
		
		let range: Range<Int> = start..<end

		let index = content.characters.index(content.startIndex, offsetBy: n)

		currentString += content.substring(to: index)
		currentStringLength += n
		charIndex += n
		content.removeCharactersAtStart(n)

