removing newline from token list