From: Hans Mackowiak Date: 2013-03-11T21:27:54+09:00 Subject: Re: Confusion with block local variable declaration with block variable declaration within the pipe ***capitalize! returns nil when no changes are made*** so you can do: if(str.capitalize!) puts "Changed!" else puts "Not Changed!" end ***append (<<) a nil value to the string*** a="" a << " ".capitalize! #raise an error -- Posted via http://www.ruby-forum.com/.