From: matz@... (Yukihiro Matsumoto) Date: 2003-02-03T12:21:08+09:00 Subject: Re: error msg with string#sub! Hi, In message "error msg with string#sub!" on 03/02/03, "Dwayne Smurdon @ DNA Media Pro" writes: |When the method below executes, it outputs: | |Starting with: (303) 294-0889 |step 1 |./OutlookContact.rb:44:in `sub!': wrong # of arguments(1 for 2) (ArgumentError) "sub!" (stands for substitute) requires pattern to substitute *and* string to replace. If you want to remove substring matches with /^\s+/, you have to specify like result.sub!(/^\s+/, "") matz.