Fixed typo
Simplified function Str.capitalize()