Fixed capitalization handling on empty string