Added capitalized? function and unit tests.