str = "Hello everybody, my name is alex"str = str.split(", ")str = str[0] + " (" + str[1].split.map(&:capitalize).join(" ") + ")"puts str
Standard input is empty
Hello everybody (My Name Is Alex)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!