capitalize function

Capitalize a substring