Learn Ruby
String
3.14
Lesson

capitalize to convert only the first letter into capital letters

Ruby provides capitalize method to turn only the first letter into capital letters.