Capitalization bug on empty strings