Add method toProperCase for string object