From: ideal one Date: 2012-06-07T05:28:19+09:00 Subject: string character count Hi, Following is my input:- Str = "This is a String." expected output is :- output = "4 2 1 7" I tried doing this but was not successful, any thoughts pls puts Str.count(" ").size -> This doesn't fit my expected output. -- Posted via http://www.ruby-forum.com/.