# Re: How do I strip off the extra double quote or white space

**URL:** <https://www.ruby-forum.com/t/re-how-do-i-strip-off-the-extra-double-quote-or-white-space/66314>\
**Category:** Ruby\
**Created:** [August 24, 2006, 7:08pm UTC](https://www.ruby-forum.com/t/re-how-do-i-strip-off-the-extra-double-quote-or-white-space/66314 "2006-08-24T19:08:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ban\_Hoang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9fc348/32.png) [@Ban\_Hoang](https://www.ruby-forum.com/u/Ban_Hoang)\
**Post date:** [August 24, 2006, 7:08pm UTC](https://www.ruby-forum.com/t/re-how-do-i-strip-off-the-extra-double-quote-or-white-space/66314/1 "2006-08-24T19:08:37Z")

</div>

Hi Ben,

You are exactly correct: "it’s adding it as a single

element instead of two, as you want."

It is my main problem: if the second line array[1] has 7 elements, it’s  
still adding as a single element? How do I fix it?

If I use assert\_equal and put the details for each element in the assert  
method and compare directly. It works OK (please look at Assert\_equalOK  
attached file).

If I try to use external cvs file, it has the problem and can not  
separate the link detail as different element! I attached the csv file  
and the my assert\_equal\_from\_File for you to review.

Thanks a lot for your help,

Ban
