From: Haruka YAGNI Date: 2011-03-17T13:36:07+09:00 Subject: Re: taking content from arrays to open a .3ds file Your string may have "\n" at last. How about this? machine = "#{a[0].strip}.3ds" String#strip removes whitespaces