One problem, the substring contains a ?, and is left in the resultant string -- Posted via http://www.ruby-forum.com/.