src code
String#capitalize() → String
Capitalizes the first letter of a string and downcases all the others.