Bug fix for Capitalize method

The original Capitalize method didn't actually capitalize the text, so I wrote this bug fix.