check for empty string before we add it to the token array