> irb> (a.split(' ') << nil).each_cons(2) {|word,lookahead| puts "%-10s > %s"%[word.inspect,lookahead.inspect]} Awesome. I understand how to use it but what exactly does %-10s %s"% mean/do? Thanks a lot for the feedback, chris -- Posted via http://www.ruby-forum.com/.