check token length