implemented splitTokens